CVE-2022-24839
Java vulnerability analysis and mitigation

Overview

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. This vulnerability was discovered in April 2022 and affects versions prior to 1.9.22.noko2. Note that the upstream library org.cyberneko.html is no longer maintained, and this CVE applies only to Nokogiri's fork located at https://github.com/sparklemotion/nekohtml (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption) with a CVSS v3.1 Base Score of 7.5 HIGH. The attack vector is Network-based (AV:N), with Low attack complexity (AC:L), requiring No privileges (PR:N), No user interaction (UI:N), having an Unchanged scope (S:U), and primarily affecting system Availability (A:H) while having No impact on Confidentiality (C:N) or Integrity (I:N) (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to a Denial of Service condition through uncontrolled resource consumption, specifically triggering a java.lang.OutOfMemoryError exception when processing malformed HTML markup. This can potentially affect the availability of systems using the vulnerable versions of the library (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to version 1.9.22.noko2 or later to address this vulnerability. The fix has been implemented in the Nokogiri fork of the library, as demonstrated in the patch commit (GitHub Patch, GitHub Advisory).

Community reactions

The vulnerability has been acknowledged and addressed by various organizations, including Oracle who included patches for this vulnerability in their July 2022 Critical Patch Update (Oracle CPU). The vulnerability was reported by 이형관 (windshock) through responsible disclosure channels (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22244CRITICAL9.1
  • JavaJava
  • org.open-metadata:platform
NoYesJan 07, 2026
CVE-2025-66518HIGH8.8
  • JavaJava
  • org.apache.kyuubi:kyuubi-server_2.12
NoYesJan 05, 2026
CVE-2025-61916HIGH7.9
  • JavaJava
  • io.spinnaker.clouddriver:clouddriver-artifacts
NoYesJan 05, 2026
CVE-2025-68280MEDIUM6.5
  • JavaJava
  • org.apache.sis.core:sis-metadata
NoYesJan 05, 2026
CVE-2025-66560MEDIUM5.9
  • JavaJava
  • io.quarkus:quarkus-rest
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management