| Name | CVE-2022-29181 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| ruby-nokogiri (PTS) | bullseye | 1.11.1+dfsg-2 | vulnerable |
| bullseye (security) | 1.11.1+dfsg-2+deb11u1 | vulnerable |
| bookworm | 1.13.10+dfsg-2 | fixed |
| trixie | 1.18.2+dfsg-1 | fixed |
| forky, sid | 1.18.10+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| ruby-nokogiri | source | (unstable) | 1.13.7+dfsg-1 | unimportant | | |
Notes
https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m
https://github.com/sparklemotion/nokogiri/commit/83cc451c3f29df397caa890afc3b714eae6ab8f7 (v1.13.6)
Binary package do not contain the Java extension, as the package is built with
export DH_RUBY_GEM_INSTALL_EXCLUDE = ext/java/*