CVE-2022-24836: Inefficient Regular Expression Complexity in Nokogiri
Vulnerability summary
CVE-2022-24836 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in apple macos. EPSS estimates a 3.52% chance of exploitation in the next 30 days, higher than 89.2% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 8Timeline
- 11-04-2022PublishedVulnerability first disclosed.
- 03-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · RubygemsEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.52%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.52% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- ruby-nokogiri< 1.6.8.1-1+deb9u2 | < 1.11.1+dfsg-2+deb11u1 | < 1.13.5+dfsg-1
- debian_linuxEOL9.0 | 10.0
Alpine1 product
- ruby-nokogiri< 1.13.4-r0
Apple1 product
- macos≥ 13.0, < 13.1
Fedoraproject1 product
- fedoraEOL34 | 35 | 36
Mageia1 product
- ruby-nokogiri< 1.11.1-1.1.mga8
Nokogiri1 product
- nokogiri< 1.13.4
RubyGems1 product
- nokogiri< 1.13.4
Sparklemotion1 product
- nokogiri< 1.13.4
Ubuntu1 product
- ruby-nokogiriAll versions (No fix recorded)
9 vendors · 10 products
References
26 links- github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8REPORTWEBThird Party Advisory
- github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfdREPORTWEBPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory