{"cve":"CVE-2022-31100","nvd":{"published":"2022-06-27T22:15:09.240","modified":"2026-06-17T04:44:47.843","status":"Modified","description":"rulex is a new, portable, regular expression language. When parsing untrusted rulex expressions, rulex may crash, possibly enabling a Denial of Service attack. This happens when the expression contains a multi-byte UTF-8 code point in a string literal or after a backslash, because rulex tries to slice into the code point and panics as a result. 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 thread running rulex panics. The crashes are fixed in version **0.4.3**. Affected users are advised to update to this version. The only known workaround for this issue is to assume that regular expression parsing will panic and to add logic to catch panics.","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-617"],"references":["https://github.com/rulex-rs/rulex/commit/fac6d58b25c6f9f8c0a6cdc4dec75b37b219f1d6","https://github.com/rulex-rs/rulex/security/advisories/GHSA-8v9w-p43c-r885","https://github.com/rulex-rs/rulex/commit/fac6d58b25c6f9f8c0a6cdc4dec75b37b219f1d6","https://github.com/rulex-rs/rulex/security/advisories/GHSA-8v9w-p43c-r885"],"products":["pomsky-lang:pomsky"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-31100","score":0.00878,"percentile":0.59067,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8v9w-p43c-r885","url":"https://osv.dev/vulnerability/GHSA-8v9w-p43c-r885","summary":"Reachable Assertion in rulex","modified":"2023-11-08T04:09:26.020407Z","packages":[{"ecosystem":"crates.io","name":"rulex","purl":"pkg:cargo/rulex","ranges":["<0.4.3"],"fixed":["0.4.3"]}]},{"id":"RUSTSEC-2022-0031","url":"https://osv.dev/vulnerability/RUSTSEC-2022-0031","summary":"Panic due to improper UTF-8 indexing","modified":"2026-10-12T18:00:05.115301404Z","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."]}