cve.bz

CVE-2022-23476 nokogiri nokogiri: Unchecked Return Value

7.5 highEPSS 1.8%Fix available

High (7.5) in nokogiri nokogiri. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.13.10.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-252 Unchecked Return Value
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23476 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23476?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23476?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23476 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nokogiri:nokogiri1.13.8
nokogiri:nokogiri1.13.9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qv4q-mr5r-qprjRubyGemsnokogiri>=1.13.8 <1.13.101.13.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ruby-nokogiri1.13.10+dfsg-1DEBIAN-CVE-2022-23476
openSUSETumbleweedruby3.2-rubygem-nokogiri1.15.4-1.1openSUSE-SU-2024:13440-1
openSUSETumbleweedrubygem-nokogiri1.15.5-1.5openSUSE-SU-2024:14174-1
openSUSETumbleweedrubygem-nokogiri1.18.2-1.1openSUSE-SU-2025:14697-1
openSUSETumbleweedrubygem-nokogiri1.18.9-1.4openSUSE-SU-2026:10356-1
Alpinev3.16, v3.17, v3.18 and 6 moreruby-nokogiri1.13.10-r0ALPINE-CVE-2022-23476

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
CloudForms Management Engine 5rubygem-nokogiriNot affected
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/toolbox-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Not affected
Red Hat Ceph Storage 6rocksdbWill not fix
Red Hat Ceph Storage 7rocksdbAffected
Red Hat Ceph Storage 8rocksdbAffected
Red Hat Ceph Storage 9rocksdbAffected
Red Hat Satellite 6satellite-capsule:el8/rubygem-nokogiriNot affected
Red Hat Satellite 6satellite:el8/rubygem-amazing_printNot affected
Red Hat Satellite 6satellite:el8/rubygem-nokogiriNot affected
Red Hat Satellite 6satellite-utils:el8/rubygem-amazing_printNot affected
Red Hat Satellite 6tfm-ror51-rubygem-nokogiriNot affected
Red Hat Satellite 6tfm-ror52-rubygem-nokogiriNot affected
Red Hat Satellite 6tfm-rubygem-amazing_printNot affected
Red Hat Satellite 6tfm-rubygem-nokogiriNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23476.

References

Check your stackJSON