PT-2022-7289
CVE-2022-29181
·
Published
2022-05-20
·
Updated
2026-10-31
Description by
CVSS 2.0
8.5
HighMetricsAV: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.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾