GHSA-mc9m-6fm9-pghc: Zoo Design Studio: Memory-corruption in memory handling of lib-kcl
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 getenv operation that has already loaded a pointer to the old buffer may subsequently index into freed memory and retrieve a stale or corrupted Pin .
Published Aug 20, 2026
Affected packages
zoo-kcl
- Ecosystem
- PyPI
- Affected
- < 0.3.153
- Fixed in
- 0.3.153
- Check
pip show zoo-kcl
kcl-lib
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.2.153
- Fixed in
- 0.2.153
- Check
cargo tree -i kcl-lib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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>.
Credited to maxammann.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
