CVE-2022-24839

Source
https://nvd.nist.gov/vuln/detail/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-11T22:15:07Z
Modified
2025-09-19T13:47:56.029300Z
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
[none]
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.

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

Affected versions

1.*

1.9.21
1.9.22

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "deprecated": false,
            "target": {
                "file": "src/org/cyberneko/html/HTMLScanner.java"
            },
            "source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
            "digest": {
                "line_hashes": [
                    "162085203086676783445262590303505274103",
                    "44068856813710640741043854333266296888",
                    "300996526665314268531739130271894187639",
                    "203104893267447267619225559189799286351"
                ],
                "threshold": 0.9
            },
            "signature_type": "Line",
            "id": "CVE-2022-24839-5741f71c"
        },
        {
            "signature_version": "v1",
            "deprecated": false,
            "target": {
                "file": "src/org/cyberneko/html/HTMLScanner.java",
                "function": "scanPI"
            },
            "source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
            "digest": {
                "length": 2692.0,
                "function_hash": "189295587538258004906619038337766323638"
            },
            "signature_type": "Function",
            "id": "CVE-2022-24839-879d8e0d"
        }
    ]
}