CVE-2022-31099 json
Uncontrolled Recursion in rulex
published 2022-05-21 4 y ago modified 2026-10-12 27 d ago also GHSA-v78m-2q7v-fjqp , RUSTSEC-2022-0030 , EUVD-2022-6161
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
Summary
rulex is a new, portable, regular expression language. 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. This is a security concern for you, if your service parses untrusted rulex expressions (expressions provided by an untrusted user), and your service becomes unavailable when the process running rulex aborts due to a stack overflow. The crash is fixed in version **0.4.3**. Affected users are advised to update to this version. There are no known workarounds for this issue.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.97% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | rulex | <0.4.3 >=0.0.0-0, <0.4.3 |
0.4.3 |
Affected products
- rulex-rs rulex
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363
web, patch, third-party-advisory
-
github.com
/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31099
advisory
-
github.com
/rulex-rs/rulex
package
-
rustsec.org
/advisories/RUSTSEC-2022-0030.html
web, advisory
-
crates.io
/crates/rulex
package
Sources
- CVE List CVE-2022-31099
- GitHub Advisory GHSA-v78m-2q7v-fjqp
- NVD CVE-2022-31099
- OSV RUSTSEC-2022-0030
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.