CVSS 3.1
8.2 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HHigh (8.2). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.13.6.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:Hnokogiri (RubyGems): fixed in 1.13.6Explain CVE-2022-29181 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29181?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29181?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29181 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| nokogiri:nokogiri | before 1.13.6 |
| apple:macos | from 13.0 before 13.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xh29-r2w5-wx8m | RubyGems | nokogiri | <1.13.6 | 1.13.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | ruby-nokogiri | 1.13.7+dfsg-1 | DEBIAN-CVE-2022-29181 |
| Ubuntu | Pro:20.04:LTS | ruby-nokogiri | 1.10.7+dfsg1-2ubuntu0.1~esm2 | UBUNTU-CVE-2022-29181 USN-7659-1 |
| Ubuntu | Pro:22.04:LTS | ruby-nokogiri | 1.13.1+dfsg-2ubuntu0.1~esm1 | UBUNTU-CVE-2022-29181 USN-7659-1 |
| Red Hat | satellite:6.12::el8 | candlepin, candlepin-selinux | 0:4.1.15-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | foreman, foreman-cli, foreman-ec2 and 11 more | 0:3.3.0.17-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | rubygem-git | 0:1.11.0-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | rubygem-rails-html-sanitizer | 0:1.4.3-2.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | python-django, python39-django | 0:3.2.14-2.el8pc | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | rubygem-nokogiri, rubygem-nokogiri-debuginfo, rubygem-nokogiri-debugsource | 0:1.13.8-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | rubygem-sinatra | 1:2.2.0-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite_capsule:6.12::el8 | foreman, foreman-debug | 0:3.3.0.17-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite_utils:6.12::el8 | foreman, foreman-cli | 0:3.3.0.17-1.el8sat | RHSA-2022:8506 |
| SUSE | Linux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 1 more | rubygem-nokogiri | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4 | rubygem-nokogiri | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE | OpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9 | rubygem-nokogiri | 1.6.1-5.6.1 | SUSE-SU-2022:3890-1 |
| openSUSE | Leap 15.3 | rubygem-nokogiri | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| openSUSE | Leap 15.4 | rubygem-nokogiri | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| openSUSE | Tumbleweed | ruby3.2-rubygem-nokogiri | 1.13.9-1.7 | openSUSE-SU-2024:13165-1 |
| openSUSE | Tumbleweed | rubygem-nokogiri | 1.13.6-1.1 | openSUSE-SU-2024:12085-1 |
| openSUSE | Tumbleweed | rubygem-nokogiri | 1.15.5-1.5 | openSUSE-SU-2024:14174-1 |
| openSUSE | Tumbleweed | rubygem-nokogiri | 1.18.2-1.1 | openSUSE-SU-2025:14697-1 |
| openSUSE | Tumbleweed | rubygem-nokogiri | 1.18.9-1.4 | openSUSE-SU-2026:10356-1 |
| Alpine | v3.16, v3.17, v3.18 and 6 more | ruby-nokogiri | 1.13.6-r0 | ALPINE-CVE-2022-29181 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
Red Hat Satellite 6.12 and later versions are not affected by this flaw.
To avoid this vulnerability in affected applications, ensure the untrusted input is a String by calling #to_s or equivalent.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Satellite 6.12 for RHEL 8 | tfm-rubygem-nokogiri-0:1.13.8-1.el8sat | Fixed 2022-11-16 | RHSA-2022:8506 |
| CloudForms Management Engine 5 | rubygem-nokogiri | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29181.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.