{"cve":"CVE-2022-31099","nvd":{"published":"2022-06-27T23:15:08.043","modified":"2026-06-17T04:44:47.717","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-674"],"references":["https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp","https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp"],"products":["pomsky-lang:pomsky"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-31099","score":0.00969,"percentile":0.61886,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v78m-2q7v-fjqp","url":"https://osv.dev/vulnerability/GHSA-v78m-2q7v-fjqp","summary":"Uncontrolled Recursion in rulex","modified":"2023-11-08T04:09:25.959683Z","packages":[{"ecosystem":"crates.io","name":"rulex","purl":"pkg:cargo/rulex","ranges":["<0.4.3"],"fixed":["0.4.3"]}]},{"id":"RUSTSEC-2022-0030","url":"https://osv.dev/vulnerability/RUSTSEC-2022-0030","summary":"Stack overflow during recursive expression parsing","modified":"2026-10-12T18:00:05.119333870Z","packages":[{"ecosystem":"crates.io","name":"rulex","purl":"pkg:cargo/rulex","ranges":[">=0.0.0-0 <0.4.3"],"fixed":["0.4.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}