Uncontrolled Recursion 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-674.
Summary
rulex is a new, portable, regular expression language. When 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. 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 process running rulex aborts due to a stack overflow. The crash is fixed in version **0.4.3**. Affected users are advised to update to this version. There are no known workarounds for this issue.
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-v78m-2q7v-fjqp |
- 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-v78m-2q7v-fjqp
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-v78m-2q7v-fjqp rulex (crates.io) Fixed in 0.4.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31099
- 2026-10-03 Alias added: GHSA-v78m-2q7v-fjqp
References
Advisory 2
More Pomsky-lang Pomsky vulnerabilities
- TI-2022-13144 Reachable Assertion in rulex CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-31099 · CVE Program
- CVE-2022-31099 · NVD
- FIRST EPSS
- GHSA-v78m-2q7v-fjqp · 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