Advisory

RUSTSEC-2022-0030

Also known as: CVE-2022-31099, GHSA-v78m-2q7v-fjqp

Summary

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.

Severity

Not rated by the source.

Dates

Published
2022-05-21 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

rulex

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.3 (semver)

Fixed versions

0.4.3

Fix

  • Fixed version 0.4.3
    cargo update -p rulex --precise 0.4.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences