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

Not scored Published

A race condition in kcl-lib causes use-after-free during concurrent environment access, potentially allowing code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-mc9m-6fm9-pghc?

GHSA-mc9m-6fm9-pghc is an use after free vulnerability in zoo-kcl, published on 20 Aug 2026.

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

Which versions are affected by GHSA-mc9m-6fm9-pghc?

4 open source packages ship an affected version, including zoo-kcl and kcl-lib.

PackageAffectedFixed in
zoo-kcl PyPIAll versions0.3.153
zoo-kcl PyPIAll versions0.3.153
kcl-lib crates.ioAll versions0.2.153
kcl-lib crates.ioAll versions0.2.153

How do I fix GHSA-mc9m-6fm9-pghc?

Upgrade zoo-kcl to 0.3.153 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is GHSA-mc9m-6fm9-pghc being exploited?

There is no known exploitation of GHSA-mc9m-6fm9-pghc in the wild and no public exploit code.

Sources

Is GHSA-mc9m-6fm9-pghc in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free