CVE-2022-23476

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-23476
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23476.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23476
Aliases
Downstream
Related
Published
2022-12-08T03:03:24Z
Modified
2025-10-22T18:25:57.726642Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Unchecked return value from xmlTextReaderExpand in Nokogiri
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-252",
        "CWE-476"
    ]
}
References

Affected packages

Git / github.com/sparklemotion/nokogiri

Affected ranges

Type
GIT
Repo
https://github.com/sparklemotion/nokogiri
Events

Affected versions

v1.*

v1.13.8
v1.13.9