PT-2022-7276 · Nekohtml+4 · Nekohtml+5
Published
2022-04-11
·
Updated
2026-03-13
·
CVE-2022-24839
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Nokogiri versions prior to 1.9.22.noko2
Description
The issue is related to uncontrolled resource consumption when parsing ill-formed HTML markup, which can lead to a java.lang.OutOfMemoryError exception. This can be exploited by a remote attacker to cause a denial of service. The upstream library org.cyberneko.html is no longer maintained, and the vulnerability applies only to the fork used by Nokogiri, located at https://github.com/sparklemotion/nekohtml.
Recommendations
Upgrade to version >= 1.9.22.noko2 to resolve the issue. As a temporary workaround, consider restricting the use of the vulnerable HTML parser until a patch is available. Avoid parsing ill-formed HTML markup to minimize the risk of exploitation.
Exploit
Fix
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Debian
Jira
Jira Service Management Server
Nokogiri
Nekohtml