
CVE catalog
CVE-2022-23476
ruby-nokogiri: CVE-2022-23476
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.82% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-nokogiri | sid | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | forky | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | trixie | 1.18.2+dfsg-1 | fixed |
| Debian | ruby-nokogiri | bookworm | 1.13.10+dfsg-2 | fixed |
| Opensuse | ruby3.2-rubygem-nokogiri | tumbleweed | 1.15.4-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-nokogiri | source | sid | 1.13.10+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-nokogiri | source | forky | 1.13.10+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-nokogiri | source | trixie | 1.13.10+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-nokogiri | source | bookworm | 1.13.10+dfsg-1 | not yet assigned | Not reported | Not reported |
| Opensuse | ruby3.2-rubygem-nokogiri | rpm | tumbleweed | 1.15.4-1.1 | Not reported | OPENSUSE-SU-2024:13440-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-nokogiri]Fixed
Source package: [ruby-nokogiri]
Details (2)
1.13.10+dfsg-2+b1· amd64 · bookwormFixed · Fixed:
1.13.10+dfsg-1dsa · ruby-nokogiri · debian · bookworm
1.13.10+dfsg-2+b1· arm64 · bookwormFixed · Fixed:
1.13.10+dfsg-1dsa · ruby-nokogiri · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_13440-1.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-23476]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13440-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-23476]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23476.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]