CVE-2022-23476
published 2022-12-08CVE-2022-23476: 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…
PriorityP339high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
1.68%
74.4th percentile
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.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ruby-nokogiri | < ruby-nokogiri 1.13.10+dfsg-1 (bookworm) | ruby-nokogiri 1.13.10+dfsg-1 (bookworm) |
| nokogiri | nokogiri | — | — |
| nokogiri | nokogiri | — | — |
| nokogiri | nokogiri | >= 1.13.8 < 1.13.10 | 1.13.10 |
| sparklemotion | nokogiri | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Unchecked return value from xmlTextReaderExpand
ghsa·2022-12-08
CVE-2022-23476 [HIGH] CWE-252 Unchecked return value from xmlTextReaderExpand
Unchecked return value from xmlTextReaderExpand
## Summary
Nokogiri `1.13.8, 1.13.9` fails 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.
## Mitigation
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
The Nokogiri maintainers have evaluated this as [High Severity 7.5 (CVSS3.1)](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
## R
OSV
Unchecked return value from xmlTextReaderExpand
osv·2022-12-08
CVE-2022-23476 [HIGH] Unchecked return value from xmlTextReaderExpand
Unchecked return value from xmlTextReaderExpand
## Summary
Nokogiri `1.13.8, 1.13.9` fails 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.
## Mitigation
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
The Nokogiri maintainers have evaluated this as [High Severity 7.5 (CVSS3.1)](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
## R
OSV
CVE-2022-23476: Nokogiri is an open source XML and HTML library for the Ruby programming language
osv·2022-12-08·CVSS 7.5
CVE-2022-23476 [HIGH] CVE-2022-23476: Nokogiri is an open source XML and HTML library for the Ruby programming language
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.
Red Hat
rubygem-nokogiri: Denial of service
vendor_redhat·2022-12-08·CVSS 7.5
CVE-2022-23476 [HIGH] CWE-476 rubygem-nokogiri: Denial of service
rubygem-nokogiri: Denial of service
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.
A denial of service flaw was found in rubygem-nokogiri. When parsing invalid markup, a NULL pointer exception may occur, w
Debian
CVE-2022-23476: ruby-nokogiri - Nokogiri is an open source XML and HTML library for the Ruby programming languag...
vendor_debian·2022·CVSS 7.5
CVE-2022-23476 [HIGH] CVE-2022-23476: ruby-nokogiri - Nokogiri is an open source XML and HTML library for the Ruby programming languag...
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.
Scope: local
bookworm: resolved (fixed in 1.13.10+dfsg-1)
bullseye: resolved
forky: resolved (fixed in 1.13.10+dfsg-1)
sid: resolved (fixed in 1.13.10+dfsg-1)
t
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88cehttps://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprjhttps://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88cehttps://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj
2022-12-08
Published