Reachable Assertion in rulex
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-617.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rulex-rs | rulex | before 0.4.3 | 0.4.3 | Patch available | CNA |
| — | rulex (crates.io) | before 0.4.3 | 0.4.3 | Patch available | GHSA-8v9w-p43c-r885 |
- rulex Vendorrulex-rs Affected before 0.4.3 Fixed in 0.4.3 Patch available CNA
- rulex (crates.io) Vendor— Affected before 0.4.3 Fixed in 0.4.3 Patch available GHSA-8v9w-p43c-r885
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:pomsky-lang:pomsky:*:*:*:*:*:rust:*:* | before 0.4.3 | Vulnerable | Pomsky-lang |
- cpe:2.3:a:pomsky-lang:pomsky:*:*:*:*:*:rust:*:* Versions before 0.4.3 Vulnerable ·Pomsky-lang
Remediation
- Fix · CNA rulex (rulex-rs) Fixed in 0.4.3
- Fix · GHSA-8v9w-p43c-r885 rulex (crates.io) Fixed in 0.4.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31100
- 2026-10-03 Alias added: GHSA-8v9w-p43c-r885
References
Advisory 2
More Pomsky-lang Pomsky vulnerabilities
- TI-2022-13143 Uncontrolled Recursion in rulex CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-31100 · CVE Program
- CVE-2022-31100 · NVD
- FIRST EPSS
- GHSA-8v9w-p43c-r885 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences