Skip to main content
← All vulnerabilities
CVE-2022-29181GHSA-XH29-R2W5-WX8M

Improper Handling of Unexpected Data Type in Nokogiri

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.13.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sparklemotion nokogiri

    fixed in 1.13.6

  • nokogiriRubyGems

    fixed in 1.13.6

References 5

GitHub · sparklemotion/nokogiri

securitylab.github.com