CVE-2022-29181 - CVE House
Back to Database
Status published High CVE-2022-29181

Improper Handling of Unexpected Data Type in Nokogiri

Vulnerability Description

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-29181

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

sparklemotion

View all reports →

Affected Software

nokogiri
Vulnerable Versions:
< 1.13.6

Timeline

Official Publish: May 20th, 2022
Last Modified: May 27th, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Weaknesses (CWE)

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.