CVE-2022-24839 Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)
Attackers can cause denial of service by triggering an OutOfMemoryError in the Nokogiri fork of the NekoHTML parser via ill-formed HTML.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24839?
CVE-2022-24839 is a high-severity denial of service vulnerability in Oracle Weblogic Server, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-400
Which versions are affected by CVE-2022-24839?
2 open source packages ship an affected version, including org.nokogiri:nekohtml. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.nokogiri:nekohtml Maven | All versions | 1.9.22.noko2 |
org.nokogiri:nekohtml Maven | All versions | 1.9.22.noko2 |
Products include Nekohtml Project Nekohtml, Oracle Weblogic Server.
How do I fix CVE-2022-24839?
Upgrade org.nokogiri:nekohtml to 1.9.22.noko2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-24839 being exploited?
There is no known exploitation of CVE-2022-24839 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1770682159, DEBIAN-CVE-2022-24839, GHSA-9849-p7jc-9rmv, OESA-2022-1636, UBUNTU-CVE-2022-24839.