# GHSA-MC9M-6FM9-PGHC: Zoo Design Studio: Memory-corruption in memory handling of lib-kcl

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-08-20
- Modified: 2026-08-20

## Affected versions

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

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

## References

- https://github.com/KittyCAD/modeling-app/security/advisories/GHSA-mc9m-6fm9-pghc
- https://github.com/KittyCAD/modeling-app

Page: https://cve.now/GHSA-MC9M-6FM9-PGHC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
