{"answers":{"affected":"4 open source packages ship an affected version, including zoo-kcl and kcl-lib.","exploited":"There is no known exploitation of GHSA-mc9m-6fm9-pghc in the wild and no public exploit code.","fix":"Upgrade zoo-kcl to 0.3.153 or later.","what":"GHSA-mc9m-6fm9-pghc is an use after free vulnerability in zoo-kcl, published on 20 Aug 2026."},"fix_prompt":"Check this codebase for GHSA-mc9m-6fm9-pghc and fix it if it is affected.\n\nWhat it is: GHSA-mc9m-6fm9-pghc is an use after free vulnerability in zoo-kcl, published on 20 Aug 2026. \nExploitation: There is no known exploitation of GHSA-mc9m-6fm9-pghc in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zoo-kcl (PyPI): affected all versions; fixed in 0.3.153\n- zoo-kcl (PyPI): affected all versions; fixed in 0.3.153\n- kcl-lib (crates.io): affected all versions; fixed in 0.2.153\n- kcl-lib (crates.io): affected all versions; fixed in 0.2.153\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-mc9m-6fm9-pghc/ (Markdown: https://insights.sbomify.com/GHSA-mc9m-6fm9-pghc/index.md)","id":"GHSA-mc9m-6fm9-pghc","markdown":"https://insights.sbomify.com/GHSA-mc9m-6fm9-pghc/index.md","name":"GHSA-mc9m-6fm9-pghc","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"KCL library","requires_auth":"none","summary":"A race condition in kcl-lib causes use-after-free during concurrent environment access, potentially allowing code execution or crashes.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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\u003cBox\u003cEnvironment\u003e\u003e.","ecosystems":["PyPI","crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Zoo Design Studio: Memory-corruption in memory handling of lib-kcl","id":"GHSA-mc9m-6fm9-pghc","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.3.153"],"introduced":["0"],"last_affected":[],"package":"zoo-kcl","purl":null,"source":"GHSA-mc9m-6fm9-pghc"},{"ecosystem":"PyPI","fixed":["0.3.153"],"introduced":["0"],"last_affected":[],"package":"zoo-kcl","purl":"pkg:pypi/zoo-kcl","source":"GHSA-mc9m-6fm9-pghc"},{"ecosystem":"crates.io","fixed":["0.2.153"],"introduced":["0"],"last_affected":[],"package":"kcl-lib","purl":null,"source":"GHSA-mc9m-6fm9-pghc"},{"ecosystem":"crates.io","fixed":["0.2.153"],"introduced":["0"],"last_affected":[],"package":"kcl-lib","purl":"pkg:cargo/kcl-lib","source":"GHSA-mc9m-6fm9-pghc"}],"products":null,"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A race condition in kcl-lib causes use-after-free during concurrent environment access, potentially allowing code execution or crashes.","url":"https://insights.sbomify.com/GHSA-mc9m-6fm9-pghc/"}