{"id":"CVE-2022-31099","published":"2022-06-27T22:10:20Z","modified":"2025-04-23T18:06:21Z","title":"Uncontrolled Recursion in rulex","vendor":"rulex-rs","product":"rulex","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00985,"percentile":0.63205,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":12.64},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"rulex-rs","affectedVersions":[{"vendor":"rulex-rs","product":"rulex","versions":["< 0.4.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:04:15.917923Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"rulex","vulnerableRanges":["<0.4.3",">=0.0.0-0, <0.4.3"],"patched":["0.4.3"],"from":["GHSA-v78m-2q7v-fjqp","RUSTSEC-2022-0030"],"provenance":"source"}],"summary":{"text":"The rulex regular expression language, published by rulex-rs, contains an uncontrolled recursion flaw in its expression parser that can overflow the stack and abort the process. An attacker who can get the service to parse a crafted expression with several hundred levels of nesting can crash it, causing a denial of service; this requires only low-privilege network access with no user interaction, and only affects services that parse untrusted rulex expressions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:20Z"},"euvd":{"id":"EUVD-2022-6161","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rulex-rs-rulex-cve-2022-31099","children":[{"from":"CVE-2022-31099","to":"CVE-2022-31100","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rulex-lib/src/parse/parsers.rs"],"commits":["https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","https://github.com/rulex-rs/rulex/commit/fac6d58b25c6f9f8c0a6cdc4dec75b37b219f1d6"],"basis":"rarely changed file"}]}]}}