medium6.9No CVE yet
GHSA-jgvr-6x5w-hx5w
Zoo Design Studio: Recursive KCL parsing is vulnerable to denial-of-service
Impact
### 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.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | zoo-kcl | < 0.3.129 | 0.3.129 |
| rust | kcl-lib | < 0.2.129 | 0.3.129 |