{"id":"GHSA-v78m-2q7v-fjqp","revision":"96c4e37c1d024d36b9e2ff7841db081f","records":[{"revision":"96c4e37c1d024d36b9e2ff7841db081f","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-v78m-2q7v-fjqp","aliases":["CVE-2022-31099","RUSTSEC-2022-0030"],"title":"Uncontrolled Recursion in rulex","description":"### Impact\nWhen 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.\n\nThis is a security concern for you, if\n- your service parses untrusted rulex expressions (expressions provided by an untrusted user), and\n- your service becomes unavailable when the process running rulex aborts due to a stack overflow.\n\n### Patches\nThe crash is fixed in version **0.4.3**. Affected users are advised to update to this version.\n\n### Workarounds\nNone.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [rulex](https://github.com/rulex-rs/rulex/issues)\n* Email me at [ludwig.stecher@gmx.de](mailto:ludwig.stecher@gmx.de)\n\n### Credits\n\nCredit for finding these bugs goes to\n\n- [evanrichter](https://github.com/evanrichter)\n- [ForAllSecure Mayhem](https://forallsecure.com/)\n- [cargo fuzz](https://github.com/rust-fuzz/cargo-fuzz) and [afl.rs](https://github.com/rust-fuzz/afl.rs)","state":0,"publishedAt":"2022-06-22T17:52:51+00:00","modifiedAt":"2023-11-08T04:09:25.959683+00:00","affected":[{"ecosystem":"crates.io","name":"rulex","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.4.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp","https://nvd.nist.gov/vuln/detail/CVE-2022-31099","https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363","https://github.com/rulex-rs/rulex","https://rustsec.org/advisories/RUSTSEC-2022-0030.html"],"sourceUrl":"https://github.com/advisories/GHSA-v78m-2q7v-fjqp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-v78m-2q7v-fjqp","identifiers":["GHSA-v78m-2q7v-fjqp","CVE-2022-31099","RUSTSEC-2022-0030"]},"retained":false,"historicalAffected":[]}],"coverage":[]}