
CVE catalog
CVE-2022-29181
ruby-nokogiri: CVE-2022-29181
- Severity
- High · CVSS 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.23% · Oct 25, 2026
Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent.
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 |
| Ubuntu | ruby-nokogiri | pro | 1.11.1+dfsg-2ubuntu1 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.11.7+dfsg-3 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.11.7+dfsg-3build1 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.13.1+dfsg-2 | vulnerable |
| Ubuntu | ruby-nokogiri | pro | 1.13.1+dfsg-2ubuntu0.1~esm1 | fixed |
| Opensuse | rubygem-nokogiri | tumbleweed | 1.13.6-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-nokogiri | source | sid | 1.13.7+dfsg-1 | unimportant | Not reported | Not reported |
| Debian | ruby-nokogiri | source | forky | 1.13.7+dfsg-1 | unimportant | Not reported | Not reported |
| Debian | ruby-nokogiri | source | trixie | 1.13.7+dfsg-1 | unimportant | Not reported | Not reported |
| Debian | ruby-nokogiri | source | bookworm | 1.13.7+dfsg-1 | unimportant | Not reported | Not reported |
| Ubuntu | ruby-nokogiri | deb | pro | 1.13.1+dfsg-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2022-29181 | Not reported |
| Opensuse | rubygem-nokogiri | rpm | tumbleweed | 1.13.6-1.1 | Not reported | OPENSUSE-SU-2024:12085-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [ruby4.0-rubygem-nokogiri]Unknown
Source package: [rubygem-nokogiri]
Details (1)
1.19.4-1.3· x86_64 · tumbleweedUnknown · Fixed:
1.13.6-1.1Version impact unknown
dsa · rubygem-nokogiri · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [ruby-nokogiri]Fixed
Source package: [ruby-nokogiri]
Details (2)
1.13.10+dfsg-2+b1· amd64 · bookwormFixed · Fixed:
1.13.7+dfsg-1dsa · ruby-nokogiri · debian · bookworm
1.13.10+dfsg-2+b1· arm64 · bookwormFixed · Fixed:
1.13.7+dfsg-1dsa · ruby-nokogiri · debian · bookworm
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:8506]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_3890-1.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-29181]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12085-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-29181]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-1935.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]