CVE-2022-23476
published high CVSS 3.1 · 7.5Unchecked return value from xmlTextReaderExpand in Nokogiri
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sparklemotion | — | nokogiri>= 1.13.8, < 1.13.10 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiriaarch64 | Advisory build | 1.15.4-1.1 | OPENSUSE-SU-2024:13440-1 |
| Alpine Linux | v3.16 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.19 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.20 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
Show 19 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby-nokogiri | Fixed | 1.13.10-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirippc64le | Advisory build | 1.15.4-1.1 | OPENSUSE-SU-2024:13440-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiris390x | Advisory build | 1.15.4-1.1 | OPENSUSE-SU-2024:13440-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirix86_64 | Advisory build | 1.15.4-1.1 | OPENSUSE-SU-2024:13440-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiriaarch64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirippc64le | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiris390x | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirix86_64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiriaarch64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirippc64le | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiris390x | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirix86_64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiriaarch64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirippc64le | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiris390x | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirix86_64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sparklemotion | nokogiri | >= 1.13.8, < 1.13.10 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-252 CWE-252: Unchecked Return Value
- CWE-476 CWE-476: NULL Pointer Dereference
References
3Provider assertions
3GitHub_M · cna
Unchecked return value from xmlTextReaderExpand in Nokogiri
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6bc577b280a15a566c54f8ccb39bfb1b8f0a022440ddb7123fd0fca45b178d68
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record