Vulnerability MediumRUSTSEC-2022-0030 · rulex
RUSTSEC-2022-0030: Stack overflow during recursive expression parsing
Short answerA security vulnerability in the rulex crate: Stack overflow during recursive expression parsing. GitHub rates it Medium. Fixed in 0.4.3: update to a fixed version.
| Crate | rulex |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.4.3. |
| Fixed in | 0.4.3 |
| Severity | Medium (GitHub rating) |
| Published | 2022-05-21 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2022-31099, GHSA-v78m-2q7v-fjqp |
What to do
- See which version you have:
cargo tree -i rulex(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p rulex. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplerulex = "0.4.3") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/rulex
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0030.html
- Web: github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for rulex
Up next
Same craterulex: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?