{"id":"CVE-2022-29181","summary":"Improper Handling of Unexpected Data Type in Nokogiri","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.","aliases":["GHSA-xh29-r2w5-wx8m"],"modified":"2026-04-16T04:35:21.592324824Z","published":"2022-05-20T00:00:00Z","related":["SUSE-SU-2022:3890-1","SUSE-SU-2022:4015-1","SUSE-SU-2022:4016-1","openSUSE-SU-2024:12085-1","openSUSE-SU-2024:13165-1","openSUSE-SU-2024:14174-1","openSUSE-SU-2025:14697-1","openSUSE-SU-2026:10356-1"],"database_specific":{"cwe_ids":["CWE-241"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29181.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6"},{"type":"WEB","url":"https://support.apple.com/kb/HT213532"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29181.json"},{"type":"ADVISORY","url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29181"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202208-29"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/"},{"type":"FIX","url":"https://github.com/sparklemotion/nokogiri/commit/83cc451c3f29df397caa890afc3b714eae6ab8f7"},{"type":"FIX","url":"https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/Dec/23"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sparklemotion/nokogiri","events":[{"introduced":"0"},{"fixed":"b7817b6a62ac210203a451d1a691a824288e9eab"}]}],"versions":["1.7.0.1-linux-binary1","REL_1.0.0","REL_1.0.1","REL_1.0.2","REL_1.0.3","REL_1.0.4","REL_1.0.5","REL_1.0.6","REL_1.0.7","REL_1.5.0.beta.1","REL_1.5.0.beta.2","v1.10.0","v1.10.0.rc1","v1.10.1","v1.10.2","v1.10.3","v1.11.0","v1.11.0.rc1","v1.11.0.rc2","v1.11.0.rc3","v1.11.0.rc4","v1.11.1","v1.11.2","v1.11.3","v1.12.0","v1.12.0.rc1","v1.12.1","v1.12.2","v1.12.3","v1.13.0","v1.13.1","v1.13.2","v1.13.3","v1.13.4","v1.13.5","v1.5.0","v1.5.0.beta.3","v1.5.0.beta.4","v1.5.1","v1.5.1.rc1","v1.5.2","v1.5.3","v1.5.3.rc1","v1.5.3.rc3","v1.5.3.rc4","v1.5.3.rc5","v1.5.3.rc6","v1.5.4.rc1","v1.5.4.rc2","v1.5.4.rc3","v1.5.5.rc1","v1.5.5.rc2","v1.5.6","v1.5.6.rc2","v1.5.7","v1.5.7.rc1","v1.5.7.rc2","v1.5.7.rc3","v1.5.8","v1.5.9","v1.6.0","v1.6.0.rc1","v1.6.2","v1.6.2.1","v1.6.2.beta.1","v1.6.2.rc1","v1.6.2.rc3","v1.6.3","v1.6.3.1","v1.6.3.rc1","v1.6.3.rc2","v1.6.3.rc3","v1.6.4","v1.6.5","v1.6.6","v1.6.6.1","v1.6.6.2","v1.6.7.rc1","v1.6.7.rc2","v1.6.7.rc3","v1.6.7.rc4","v1.6.8","v1.6.8.rc1","v1.6.8.rc2","v1.6.8.rc3","v1.7.0","v1.7.0.1","v1.8.0","v1.8.1","v1.8.2","v1.8.3","v1.8.4","v1.8.5","v1.9.0","v1.9.0.rc1","v1.9.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29181.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"}]}