# CVE-2022-31099: Uncontrolled Recursion in rulex

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-05-21T12:00:00.000Z
- Modified: 2026-10-12T18:00:05.119Z
- Also known as: GHSA-v78m-2q7v-fjqp, RUSTSEC-2022-0030
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rulex-rs rulex: < 0.4.3
- rulex (crates.io): before 0.4.3; from 0.0.0-0 before 0.4.3
- pomsky-lang pomsky: before 0.4.3

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp> (third-party-advisory, web)
- <https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31099> (advisory)
- <https://github.com/rulex-rs/rulex> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0030.html> (advisory, web)
- <https://crates.io/crates/rulex> (package)

## Sources

- CVE List: [CVE-2022-31099](https://www.cve.org/CVERecord?id=CVE-2022-31099), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-v78m-2q7v-fjqp](https://github.com/advisories/GHSA-v78m-2q7v-fjqp), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0030](https://rustsec.org/advisories/RUSTSEC-2022-0030.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2022-31099](https://nvd.nist.gov/vuln/detail/CVE-2022-31099), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31099 · Whole record: https://cve.day/CVE-2022-31099.json · Rebuilt by cve.day 2026-11-25T22:58:12.602Z
