{"schema_version":"1.9.0","id":"CVE-2022-24839","published":"2022-04-11T21:25:12Z","modified":"2026-08-12T13:00:31.854733Z","aliases":["GHSA-9849-p7jc-9rmv"],"related":["openSUSE-SU-2024:11999-1","openSUSE-SU-2024:13165-1","openSUSE-SU-2024:14174-1","openSUSE-SU-2025:14697-1","openSUSE-SU-2026:10356-1"],"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sparklemotion/nekohtml","events":[{"introduced":"0"},{"fixed":"591ff8f41c75a70e66596567b03dbf671e7ade0d"},{"fixed":"a800fce3b079def130ed42a408ff1d09f89e773d"}],"database_specific":{"cpe":"cpe:2.3:a:nekohtml_project:nekohtml:*:*:*:*:*:nokogiri:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.9.22.noko2"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["1.9.22","1.9.21"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24839.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["162085203086676783445262590303505274103","44068856813710640741043854333266296888","300996526665314268531739130271894187639","203104893267447267619225559189799286351"],"threshold":0.9},"id":"CVE-2022-24839-5741f71c","signature_type":"Line","signature_version":"v1","source":"https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d","target":{"file":"src/org/cyberneko/html/HTMLScanner.java"}},{"deprecated":false,"digest":{"function_hash":"189295587538258004906619038337766323638","length":2692},"id":"CVE-2022-24839-879d8e0d","signature_type":"Function","signature_version":"v1","source":"https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d","target":{"file":"src/org/cyberneko/html/HTMLScanner.java","function":"scanPI"}}],"vanir_signatures_modified":"2026-08-12T13:00:31Z"}}],"references":[{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24839.json"},{"type":"ADVISORY","url":"https://github.com/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24839"},{"type":"FIX","url":"https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24839.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}