CVE-2022-31100
MEDIUM 6.5CVSS 3.1Reachable Assertion in rulex
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.
- Published
- 27 Jun 2022
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-617
- Also known as
- GHSA-8v9w-p43c-r885RUSTSEC-2022-0031
- Sources
- NVDJSONOSV GHSA-8v9w-p43c-r885JSONOSV RUSTSEC-2022-0031JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pomsky-lang | pomskycpe:2.3:a:pomsky-lang:pomsky:*:*:*:*:*:rust:*:* |
< 0.4.3 | 0.4.3 |
| OSV | crates.io | rulex | < 0.4.3 | 0.4.3 |
| OSV | crates.io | rulex | >= 0.0.0-0, < 0.4.3 | 0.4.3 |
References
- https://github.com/rulex-rs/rulex/commit/fac6d58b25c6f9f8c0a6cdc4dec75b37b219f1d6 · Patch, Third Party Advisory, WEB
- https://github.com/rulex-rs/rulex/security/advisories/GHSA-8v9w-p43c-r885 · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31100 · ADVISORY
- https://github.com/rulex-rs/rulex · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0031.html · WEB, ADVISORY
- https://crates.io/crates/rulex · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 Jun 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Jun 2022)