# GHSA-mc9m-6fm9-pghc: Zoo Design Studio: Memory-corruption in memory handling of lib-kcl

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-20T18:34:11.000Z
- Modified: 2026-08-20T18:45:13.443Z
- Weaknesses: CWE-362, CWE-416

## Description

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<Environment>>.

(As written by GitHub Advisory Database.)

## Affected

- zoo-kcl (PyPI): before 0.3.153
- kcl-lib (crates.io): before 0.2.153

## References

- <https://github.com/KittyCAD/modeling-app/security/advisories/GHSA-mc9m-6fm9-pghc> (web)
- <https://github.com/KittyCAD/modeling-app> (package)

## Sources

- GitHub Advisory Database: [GHSA-mc9m-6fm9-pghc](https://github.com/advisories/GHSA-mc9m-6fm9-pghc), CC-BY-4.0, modified 2026-08-20

---

Page: https://cve.day/GHSA-mc9m-6fm9-pghc · Whole record: https://cve.day/GHSA-mc9m-6fm9-pghc.json · Rebuilt by cve.day 2026-11-25T22:56:35.921Z
