CVE-2022-23476

Summary

CVECVE-2022-23476
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-12-08 04:15:00 UTC
Updated2022-12-10 03:10:00 UTC
DescriptionNokogiri 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.

Risk And Classification

Problem Types: CWE-476 | CWE-252

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nokogiri Nokogiri 1.13.8 All All All
Application Nokogiri Nokogiri 1.13.9 All All All

References

ReferenceSourceLinkTags
fix(cruby): XML::Reader#attribute_hash returns nil on error · sparklemotion/nokogiri@9fe0761 · GitHub MISC github.com
Unchecked return value from xmlTextReaderExpand · Advisory · sparklemotion/nokogiri · GitHub MISC github.com
Merge pull request #2715 from sparklemotion/flavorjones-fix-reader-er… · sparklemotion/nokogiri@85410e3 · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 184494 Debian Security Update for ruby-nokogiri (CVE-2022-23476)
  • 283531 Fedora Security Update for rubygem (FEDORA-2022-acff3f54b2)
  • 283532 Fedora Security Update for rubygem (FEDORA-2022-b5c325caad)
  • 502609 Alpine Linux Security Update for ruby-nokogiri
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report