medium

GHSA-mc9m-6fm9-pghc#kcl-lib

crates.io · kcl-lib

Summary

Zoo Design Studio: Memory-corruption in memory handling of lib-kcl

Severity
medium
CWE
CWE-362, CWE-416
Published
2026-08-20
Updated
2026-08-20

Advisory details

A race condition in kcl-lib can result in a use-after-free when accessing environments concurrently. During Vec reallocation, the previous buffer containing Box pointers is freed and replaced. A concurrent get_env operation that has already loaded a pointer to the old buffer may subsequently index into freed memory and retrieve a stale or corrupted Pin<Box>.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.