{"api_version":"1","generated_at":"2026-04-23T06:20:06+00:00","cve":"CVE-2022-29181","urls":{"html":"https://cve.report/CVE-2022-29181","api":"https://cve.report/api/cve/CVE-2022-29181.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29181","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29181"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-05-20 19:15:00","updated_at":"2023-02-16 02:31:00"},"problem_types":["CWE-241"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202208-29","name":"GLSA-202208-29","refsource":"GENTOO","tags":[],"title":"Nokogiri: Multiple Vulnerabilities (GLSA 202208-29) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://support.apple.com/kb/HT213532","name":"https://support.apple.com/kb/HT213532","refsource":"CONFIRM","tags":[],"title":"About the security content of macOS Ventura 13.1 - Apple Support","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6","name":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6","refsource":"MISC","tags":[],"title":"Release 1.13.6 / 2022-05-08 · sparklemotion/nokogiri · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/","name":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/","refsource":"MISC","tags":[],"title":"GHSL-2022-031_GHSL-2022-032: Type confusion in Nokogiri leads to memory leak or DoS - CVE-2022-29181 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/23","name":"20221220 APPLE-SA-2022-12-13-4 macOS Ventura 13.1","refsource":"FULLDISC","tags":[],"title":"Full Disclosure: APPLE-SA-2022-12-13-4 macOS Ventura 13.1","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m","name":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m","refsource":"CONFIRM","tags":[],"title":"Improper Handling of Unexpected Data Type in Nokogiri · Advisory · sparklemotion/nokogiri · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267","name":"https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267","refsource":"MISC","tags":[],"title":"fix: {HTML4,XML}::SAX::{Parser,ParserContext} check arg types · sparklemotion/nokogiri@db05ba9 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-29181","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29181","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"29181","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"apple","cpe5":"macos","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"29181","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nokogiri","cpe5":"nokogiri","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-29181","qid":"182209","title":"Debian Security Update for ruby-nokogiri (CVE-2022-29181)"},{"cve":"CVE-2022-29181","qid":"282738","title":"Fedora Security Update for rubygem (FEDORA-2022-0e5d64ce65)"},{"cve":"CVE-2022-29181","qid":"282739","title":"Fedora Security Update for rubygem (FEDORA-2022-e9b2e1c1ac)"},{"cve":"CVE-2022-29181","qid":"282740","title":"Fedora Security Update for rubygem (FEDORA-2022-0071328464)"},{"cve":"CVE-2022-29181","qid":"354254","title":"Amazon Linux Security Advisory for rubygem-nokogiri : ALAS-2022-1648"},{"cve":"CVE-2022-29181","qid":"377838","title":"Apple macOS Ventura 13.1 Not Installed (HT213532)"},{"cve":"CVE-2022-29181","qid":"502364","title":"Alpine Linux Security Update for ruby-nokogiri"},{"cve":"CVE-2022-29181","qid":"710597","title":"Gentoo Linux Nokogiri Multiple Vulnerabilities (GLSA 202208-29)"},{"cve":"CVE-2022-29181","qid":"752809","title":"SUSE Enterprise Linux Security Update for rubygem-nokogiri (SUSE-SU-2022:4015-1)"},{"cve":"CVE-2022-29181","qid":"752810","title":"SUSE Enterprise Linux Security Update for rubygem-nokogiri (SUSE-SU-2022:4016-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-29181","STATE":"PUBLIC","TITLE":"Improper Handling of Unexpected Data Type in Nokogiri"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"nokogiri","version":{"version_data":[{"version_value":"< 1.13.6"}]}}]},"vendor_name":"sparklemotion"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-241: Improper Handling of Unexpected Data Type"}]}]},"references":{"reference_data":[{"name":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m","refsource":"CONFIRM","url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m"},{"name":"https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267","refsource":"MISC","url":"https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267"},{"name":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6","refsource":"MISC","url":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6"},{"name":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/","refsource":"MISC","url":"https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/"},{"refsource":"GENTOO","name":"GLSA-202208-29","url":"https://security.gentoo.org/glsa/202208-29"},{"refsource":"CONFIRM","name":"https://support.apple.com/kb/HT213532","url":"https://support.apple.com/kb/HT213532"},{"refsource":"FULLDISC","name":"20221220 APPLE-SA-2022-12-13-4 macOS Ventura 13.1","url":"http://seclists.org/fulldisclosure/2022/Dec/23"}]},"source":{"advisory":"GHSA-xh29-r2w5-wx8m","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-05-20 19:15:00","lastModifiedDate":"2023-02-16 02:31:00","problem_types":["CWE-241"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":4.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":6.4},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*","versionEndExcluding":"1.13.6","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*","versionStartIncluding":"13.0","versionEndExcluding":"13.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}