CVE-2022-23476 json
Unchecked return value from xmlTextReaderExpand in Nokogiri
published 2022-12-08 3 y ago modified 2026-06-17 4 mo ago also GHSA-qv4q-mr5r-qprj , EUVD-2022-7725
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems nokogiri 1.13.10
- ruby-nokogiri Debian 14, Debian 13, Debian 12 1.13.10+dfsg-1
debian advisories DEBIAN-CVE-2022-23476
- rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
- rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
- rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
- ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.15.4-1.1
opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:13440-1
- ruby-nokogiri Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.13.10-r0
alpine advisories ALPINE-CVE-2022-23476
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-23476 updated cvss 7.5
rubygem-nokogiri: Denial of service
-
Red Hat Ceph Storage 6 rocksdbaffected: no fix planned “Will not fix”
-
Red Hat Ceph Storage 7 rocksdb Red Hat Ceph Storage 8 rocksdb Red Hat Ceph Storage 9 rocksdbaffected: no fix available
-
Red Hat CloudForms Management Engine 5 rubygem-nokogiri Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8, 3scale-amp2/backend-rhel8, 3scale-amp2/toolbox-rhel8 Red Hat Satellite 6 rubygem-nokogiri, tfm-rubygem-nokogiri, rubygem-amazing_print, tfm-rubygem-amazing_print, tfm-ror51-rubygem-nokogiri, tfm-ror52-rubygem-nokogirinot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.82% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | nokogiri | >=1.13.8, <1.13.10 |
1.13.10 |
Affected products
- sparklemotion nokogiri
Classification
References
-
github.com
/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce
web, patch, third-party-advisory
-
github.com
/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50
web, patch, third-party-advisory
-
github.com
/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-23476
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2022-23476.yml
web
-
github.com
/sparklemotion/nokogiri
package
Sources
- CVE List CVE-2022-23476
- GitHub Advisory GHSA-qv4q-mr5r-qprj
- NVD CVE-2022-23476
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.