CVE-2022-29181

unknown
Published 2022-05-23 · Modified 2025-05-27
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
CVSS v2
VIR risk

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-29181

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2022-29181.html

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed1.13.7+dfsg-1
debian debianbullseyeaffected
debian debianforkyfixed1.13.7+dfsg-1
debian debiansidfixed1.13.7+dfsg-1
debian debiantrixiefixed1.13.7+dfsg-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsnokogiri<>= 1.13.6>= 1.13.6
ruby RubyGemsnokogiri<1.13.61.13.6

References

Verify integrity in audit chain (admin only). AS-IS.