CVE-2022-24836: Nokogiri - Regular Expression Denial of Service
- Cve: CVE-2022-24836
- Name: Nokogiri - Regular Expression Denial of Service
- Description: Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue.
- Impact: Attackers can cause denial of service by triggering excessive backtracking during encoding detection.
- Remediation: Upgrade to Nokogiri >= 1.13.4.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.03519
- Epss percentile: 0.89516
- Assignee: [email protected]
- Published at: 2022-04-11T22:15:07Z
- Age in days: 1688
- Modified at: 2026-06-17T04:32:37Z
- Patch available: yes
- References total: 11
- Products total: 4
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24836
- 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: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
| CWE-1333 | Inefficient Regular Expression Complexity |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| nokogiri:nokogiri | < 1.13.4 | /v1/products/nokogiri/nokogiri |
| debian:debian_linux | = 10.0, = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 36, = 35, = 34 | /v1/products/fedoraproject/fedora |
| apple:macos | >= 13.0, < 13.1 | /v1/products/apple/macos |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sparklemotion/nokogiri | commit, package, releases, security_advisory | yes | /v1/repositories/sparklemotion/nokogiri |
Index
- Repositories: 106
- Repositories high signal: 20
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports