PT-2022-7289 · Nokogiri+6 · Nokogiri+6
Agustin Gianni
+1
·
Published
2022-05-20
·
Updated
2026-03-13
·
CVE-2022-29181
CVSS v2.0
8.5
High
| Vector | AV:N/AC:L/Au:N/C:P/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Nokogiri versions prior to 1.13.6
Description
The issue is related to the incorrect handling of unexpected data types in the Nokogiri library for Ruby. This can allow a remote attacker to disclose protected information or cause a denial of service. The library does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors or reads from unrelated memory.
Recommendations
For versions prior to 1.13.6, upgrade to Nokogiri version 1.13.6 or later.
As a temporary workaround, ensure the untrusted input is a
String by calling #to s or equivalent.Exploit
Fix
DoS
Type Confusion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Debian
Linuxmint
Apple Macos
Nokogiri
Red Os
Suse
Ubuntu