All reports
Medium

Zoo Design Studio: Recursive KCL parsing is vulnerable to denial-of-service

Affected versions

Rust / Cargokcl-lib
Affected versions
< 0.2.129
Fixed version
0.3.129
Affected versions
< 0.3.129
Fixed version
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.

Links

Credits

  • maxammann