{"id":"ALPINE-CVE-2022-29181","details":"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.","modified":"2026-11-03T07:31:25.655944728Z","published":"2022-05-20T19:15:08.203Z","upstream":["CVE-2022-29181"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-29181"}],"affected":[{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-29181.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"}]}