{"id":"GHSA-mc9m-6fm9-pghc","aliases":["GHSA-mc9m-6fm9-pghc"],"related":[],"kind":"vulnerability","state":"published","title":"Zoo Design Studio: Memory-corruption in memory handling of lib-kcl","summary":"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>>.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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>>.","format":"markdown","source":"ghsa"}],"published":"2026-08-20T18:34:11.000Z","modified":"2026-08-20T18:45:13.443Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-362","CWE-416"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.3.153"}],"ecosystem":"PyPI","package":"zoo-kcl","purl":"pkg:pypi/zoo-kcl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.153"}],"ecosystem":"crates.io","package":"kcl-lib","purl":"pkg:cargo/kcl-lib","source":"ghsa"}],"references":[{"url":"https://github.com/KittyCAD/modeling-app/security/advisories/GHSA-mc9m-6fm9-pghc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/KittyCAD/modeling-app","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mc9m-6fm9-pghc","url":"https://github.com/advisories/GHSA-mc9m-6fm9-pghc","licence":"CC-BY-4.0","modified":"2026-08-20T18:45:13.443Z"}],"updatedAt":"2026-11-25T22:56:35.921Z"}