CVE-2022-24839

Source
https://cve.org/CVERecord?id=CVE-2022-24839
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-24839.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-24839
Aliases
Downstream
Related
Published
2022-04-11T21:25:12Z
Modified
2026-07-15T00:28:14.640574Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-400"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24839.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/sparklemotion/nekohtml

Affected ranges

Type
GIT
Repo
https://github.com/sparklemotion/nekohtml
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.9.22.noko2"
        }
    ],
    "cpe": "cpe:2.3:a:nekohtml_project:nekohtml:*:*:*:*:*:nokogiri:*:*",
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.9.21
1.9.22

Database specific

vanir_signatures
[
    {
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "162085203086676783445262590303505274103",
                "44068856813710640741043854333266296888",
                "300996526665314268531739130271894187639",
                "203104893267447267619225559189799286351"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "src/org/cyberneko/html/HTMLScanner.java"
        },
        "signature_version": "v1",
        "id": "CVE-2022-24839-5741f71c",
        "source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "digest": {
            "function_hash": "189295587538258004906619038337766323638",
            "length": 2692.0
        },
        "target": {
            "file": "src/org/cyberneko/html/HTMLScanner.java",
            "function": "scanPI"
        },
        "signature_version": "v1",
        "id": "CVE-2022-24839-879d8e0d",
        "source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-07-15T00:28:14Z"
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-24839.json"