GitHub Advisoryadvisory · PyPI, crates.io
GHSA-jgvr-6x5w-hx5w Zoo Design Studio: Recursive KCL parsing is vulnerable to denial-of-service
MEDIUM
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-770
- Reviewed
- 2026-08-20
Affected packages
• PyPI zoo-kcl: < 0.3.129 → fixed in 0.3.129
• crates.io kcl-lib: < 0.3.129 → fixed in 0.3.129
Description
Impact
Feeding a KCL program that wraps an expression in deep, unnecessary parentheses triggers the parser’s recursive `expression` -> `unnecessarily_bracketed` -> `expression` path. With enough nesting, the call stack grows until it exceeds the process stack limit, causing a stack overflow.
Related
Weakness · CWE (1)
- CWE-770 Allocation of Resources Without Limits or Throttling weakness