CVE-2022-31099: Rulex - Buffer Overflow
- Cve: CVE-2022-31099
- Name: Rulex - Buffer Overflow
- Description: 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.
- Impact: Attackers can cause service unavailability by triggering stack overflow, leading to Denial of Service.
- Remediation: Update to version 0.4.3 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00985
- Epss percentile: 0.63249
- Assignee: [email protected]
- Published at: 2022-06-27T23:15:08Z
- Age in days: 1611
- Modified at: 2026-06-17T04:44:47Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31099
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/rulex-rs/rulex/commit/60aa2dc03a22d69c8800fec81f99c96958a11363 | nvd | Patch, Third Party Advisory |
| https://github.com/rulex-rs/rulex/security/advisories/GHSA-v78m-2q7v-fjqp | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pomsky-lang:pomsky | < 0.4.3 | no | nvd | /v1/products/pomsky-lang/pomsky |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pomsky-lang/pomsky | fix | yes | /v1/repositories/pomsky-lang/pomsky |
| rulex-rs/rulex | commit, package, security_advisory | yes | /v1/repositories/rulex-rs/rulex |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts