GitHub Advisoryadvisory · PyPI, crates.io

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

MEDIUM Published 2026-08-20 Modified 2026-08-20 Official page ↗
Ecosystem
PyPI, crates.io
Packages
zoo-kcl, kcl-lib
Severity
Moderate
CVSS 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
Weaknesses
CWE-362, CWE-416
Reviewed
2026-08-20

Affected packages

• PyPI zoo-kcl: < 0.3.153 → fixed in 0.3.153 • crates.io kcl-lib: < 0.2.153 → 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>.

Related

Weakness · CWE (2)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness
  • CWE-416 Use After Free weakness

References