ADVISORIES

RustSec Advisory Database

RUSTSEC-2022-0030

Stack overflow during recursive expression parsing

Details

When parsing untrusted rulex expressions, the stack may overflow, possibly enabling a Denial of Service attack. This happens when parsing an expression with several hundred levels of nesting, causing the process to abort immediately.

The flaw was corrected in commits 60aa2dc03a by adding a check to recursion depth.

Affected packages

EcosystemPackageAffected versions
crates.iorulex
From 0.0.0-0 before 0.4.3 (fixed in 0.4.3)

References