CVE-2022-24839 json
Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)
published 2022-04-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-9849-p7jc-9rmv , EUVD-2023-1761
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
org.cyberneko.html is an html parser written in Java. The fork of `org.cyberneko.html` used by Nokogiri (Rubygem) raises a `java.lang.OutOfMemoryError` exception when parsing ill-formed HTML markup. Users are advised to upgrade to `>= 1.9.22.noko2`. Note: The upstream library `org.cyberneko.html` is no longer maintained. Nokogiri uses its own fork of this library located at https://github.com/sparklemotion/nekohtml and this CVE applies only to that fork. Other forks of nekohtml may have a similar vulnerability.
Patch / fix
- maven org.nokogiri:nekohtml 1.9.22.noko2
- nekohtml_project nekohtml 1.9.22.noko2
- nekohtml Debian 14, Debian 13, Debian 12 1.9.22.noko2-0.1
debian advisories DEBIAN-CVE-2022-24839
- rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
- rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
- rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
- rubygem-nokogiri openSUSE Tumbleweed 1.13.4-1.1
- ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.13.9-1.7
opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:11999-1openSUSE-SU-2024:13165-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24839 updated cvss 7.5
nokogiri: Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)
-
Red Hat CloudForms Management Engine 5 rubygem-nokogiriaffected: no fix planned “Will not fix”
-
Red Hat Satellite 6 tfm-rubygem-nokogiri, tfm-ror51-rubygem-nokogiri, tfm-ror52-rubygem-nokogiriaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
2.17% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.nokogiri:nekohtml | <1.9.22.noko2 |
1.9.22.noko2 |
Affected products
- sparklemotion nekohtml
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d
web, patch
-
oracle.com
/security-alerts/cpujul2022.html
web, patch, third-party-advisory
-
github.com
/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24839
advisory
-
github.com
/sparklemotion/nekohtml
package
Sources
- CVE List CVE-2022-24839
- GitHub Advisory GHSA-9849-p7jc-9rmv
- NVD CVE-2022-24839
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.