{"schemaVersion":3,"id":"CVE-2022-23476","aliases":["UBUNTU-CVE-2022-23476","DEBIAN-CVE-2022-23476","GHSA-qv4q-mr5r-qprj"],"status":"published","duplicateOf":null,"title":null,"description":"Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.","dates":{"published":"2022-12-08T03:03:24.572Z","modified":"2025-04-23T16:31:18.189Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01823,"percentile":0.78474,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.06500000000000013,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01758},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0168,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0168,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0168,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0168,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01823,"percentile":0.78474}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01758,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01823,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01823,"percentile":0.78474}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-252","name":"Unchecked Return Value","description":"The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/252.html"},{"id":"CWE-476","name":"NULL Pointer Dereference","description":"The product dereferences a pointer that it expects to be valid but is NULL.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/476.html"}],"affected":[{"vendor":"debian","product":"ruby-nokogiri","name":"ruby-nokogiri","label":"ruby-nokogiri","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-nokogiri","purlType":"deb","versions":[{"text":"< 1.13.10+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.10+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-nokogiri","name":"ruby-nokogiri","label":"ruby-nokogiri","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-nokogiri","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"nokogiri","name":"nokogiri","label":"nokogiri","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/nokogiri","purlType":"gem","versions":[{"text":"≥ 1.13.8, < 1.13.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.13.8, < 1.13.10","eol":null,"hubHref":null},{"vendor":"nokogiri","product":"nokogiri","name":"nokogiri","label":"nokogiri","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.13.8","noFixRecorded":false,"fixedIn":null},{"text":"1.13.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.13.8 | 1.13.9","eol":null,"hubHref":"/vendor/nokogiri/nokogiri"},{"vendor":"sparklemotion","product":"nokogiri","name":"nokogiri","label":"nokogiri","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.13.8, < 1.13.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.13.8, < 1.13.10","eol":null,"hubHref":"/vendor/sparklemotion/nokogiri"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj","label":"github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB","Third Party Advisory"]},{"url":"https://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce","label":"github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50","label":"github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-23476","label":"ubuntu.com/security/CVE-2022-23476","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23476","label":"www.cve.org/CVERecord?id=CVE-2022-23476","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-23476","label":"security-tracker.debian.org/tracker/CVE-2022-23476","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23476","label":"nvd.nist.gov/vuln/detail/CVE-2022-23476","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2022-23476.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2022-23476.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sparklemotion/nokogiri","label":"github.com/sparklemotion/nokogiri","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:13440-1","OPENSUSE-SU-2024:14174-1","OPENSUSE-SU-2025:14697-1","OPENSUSE-SU-2026:10356-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:13440-1","OPENSUSE-SU-2024:14174-1","OPENSUSE-SU-2025:14697-1","OPENSUSE-SU-2026:10356-1"]},"timeline":[{"kind":"published","date":"2022-12-08T03:03:24.572Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T16:31:18.189Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:23:38.695Z","stale":false,"partial":false}}