CVE-2022-31100
published medium CVSS 3.1 · 6.5Reachable Assertion in rulex
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rulex-rs | — | rulex< 0.4.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rulex-rs | rulex | < 0.4.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-617 CWE-617: Reachable Assertion
References
2Provider assertions
3GitHub_M · cna
Reachable Assertion in rulex
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 964e57b09175de196d20028a50db3dfa6fbfc4fcb5cd2f2f5066e35f1d49b613
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record