{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31099","id":"CVE-2022-31099","title":"Uncontrolled Recursion in rulex","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","descriptionLong":"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.","published":"2022-06-27T22:10:20.000Z","updated":"2026-10-28T02:30:36.640840830Z","reserved":"2022-05-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["rulex-rs rulex"],"affectedProducts":[{"vendor":"rulex-rs","product":"rulex","defaultStatus":null,"versions":[{"status":"affected","version":"< 0.4.3"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"rulex","purl":"pkg:cargo/rulex","ranges":["<0.4.3",">=0.0.0-0 <0.4.3"],"fixed":["0.4.3"],"advisory":"GHSA-v78m-2q7v-fjqp"}],"cwes":["CWE-674"],"aliases":["GHSA-v78m-2q7v-fjqp","RUSTSEC-2022-0030"],"references":[{"url":"https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31099.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31099","tags":["advisory"]},{"url":"https://github.com/rulex-rs/rulex","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0030.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/rulex","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00985,"epssPercentile":0.63089,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31099","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31099","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31099","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v78m-2q7v-fjqp","ok":true,"note":"GHSA-v78m-2q7v-fjqp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-31099","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}