{"id":"UBUNTU-CVE-2022-24839","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 `\u003e= 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.","modified":"2026-01-20T17:47:31.611398Z","published":"2022-04-11T22:15:00Z","upstream":["CVE-2022-24839"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-24839"},{"type":"REPORT","url":"https://github.com/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv"},{"type":"REPORT","url":"https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-24839"}],"affected":[{"package":{"name":"nekohtml","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nekohtml@1.9.22-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.21-2","1.9.22-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22-1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}},{"package":{"name":"nekohtml","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nekohtml@1.9.22-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.22-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22-1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}},{"package":{"name":"nekohtml","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nekohtml@1.9.22-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.22-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22-1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}},{"package":{"name":"nekohtml","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nekohtml@1.9.22-1.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.22-1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22-1.1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}},{"package":{"name":"nekohtml","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nekohtml@1.9.22.noko2-0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.22.noko2-0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22.noko2-0.1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}},{"package":{"name":"nekohtml","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nekohtml@1.9.22.noko2-0.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.22.noko2-0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.22.noko2-0.1","binary_name":"libnekohtml-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24839.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}