GHSA-mc9m-6fm9-pghc: Zoo Design Studio Memory-corruption Vulnerability
MODERATEGHSA-mc9m-6fm9-pghc is a MODERATE memory-corruption vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Zoo Design Studio libraries in the PyPI ecosystem. The issue involves memory-corruption in memory handling of lib-kcl. Remediation is available by upgrading affected packages to version 0.3.153, 0.2.153.
GHSA-mc9m-6fm9-pghc at a Glance
How to Fix GHSA-mc9m-6fm9-pghc
To remediate this vulnerability, upgrade all affected Zoo Design Studio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install zoo-kcl>=0.3.153
Upgrade kcl-lib to 0.2.153
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show zoo-kcl
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-mc9m-6fm9-pghc, inspect your installed packages using pip:
pip show zoo-kcl
Analyze the terminal output to locate any version of Zoo Design Studio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.153), your application is affected.
Note: The pip show zoo-kcl command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Zoo Design Studio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mc9m-6fm9-pghc Affected Zoo Design Studio Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zoo-kcl
|
PyPI |
< 0.3.153
|
0.3.153
|
|
kcl-lib
|
crates.io |
< 0.2.153
|
0.2.153
|
References
Frequently Asked Questions
What is GHSA-mc9m-6fm9-pghc?
Which Zoo Design Studio versions are affected?
What version fixes GHSA-mc9m-6fm9-pghc?
Is zoo-kcl affected?
Is kcl-lib affected?
What CWE is associated with GHSA-mc9m-6fm9-pghc?
How can I check PyPI dependencies for GHSA-mc9m-6fm9-pghc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mc9m-6fm9-pghc",
"modified" : "2026-08-20T18:34:11Z",
"published" : "2026-08-20T18:34:11Z",
"aliases" : [ ],
"summary" : "Zoo Design Studio: Memory-corruption in memory handling of lib-kcl",
"details" : "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>>.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "zoo-kcl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.153"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "kcl-lib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.153"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/KittyCAD/modeling-app/security/advisories/GHSA-mc9m-6fm9-pghc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/KittyCAD/modeling-app"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362", "CWE-416" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-20T18:34:11Z",
"nvd_published_at" : null
}
}