Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-29181

rubygem-nokogiri: Improper Handling of Unexpected Data Type in Nokogiri

Overview

Published
20 May 2022
Modified
17 Jun 2026
High CVE
1 Registry packages
9 OS packages
8 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

8.2 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Weakness: CWE-241, CWE-843

Affected packages · 1

Packages affected by CVE-2022-29181
EcosystemPackageVulnerableFixed in
RubyGems nokogiri <1.13.6 1.13.6

Open a package to see all its vulnerabilities.

Operating systems · 20 fixes

Photon OS 1 release · 1 package

fixed 1
rubygem-nokogiri
Photon OS fixes for CVE-2022-29181
ReleasePackageFixed in
4.0 rubygem-nokogiri 1.13.6-1.ph4

Red Hat 2 releases · 1 package

wont fix 2
rubygem-nokogiri
Red Hat fixes for CVE-2022-29181
ReleasePackageFixed in
7 rubygem-nokogiri +1 wont fix
8 rubygem-nokogiri +1 wont fix

SUSE Linux Enterprise 1 release · 1 package

fixed 1
ruby2-5-rubygem-nokogiri
SUSE Linux Enterprise fixes for CVE-2022-29181
ReleasePackageFixed inAdvisory
15.4 ruby2-5-rubygem-nokogiri 1.8.5-150400.14.3.1 SUSE-SU-2022:4016-1

alpine 4 releases · 1 package

fixed 4
ruby-nokogiri
alpine fixes for CVE-2022-29181
ReleasePackageFixed in
3.22 ruby-nokogiri 1.13.6-r0
3.23 ruby-nokogiri 1.13.6-r0
3.24 ruby-nokogiri 1.13.6-r0
edge ruby-nokogiri 1.13.6-r0

debian 4 releases · 1 package

affected 1 fixed 3
ruby-nokogiri
debian fixes for CVE-2022-29181
ReleasePackageFixed in
11 ruby-nokogiri affected
12 ruby-nokogiri 1.13.7+dfsg-1
13 ruby-nokogiri 1.13.7+dfsg-1
14 ruby-nokogiri 1.13.7+dfsg-1

echo 1 release · 1 package

fixed 1
ruby-nokogiri
echo fixes for CVE-2022-29181
ReleasePackageFixed in
ruby-nokogiri 1.13.7+dfsg-1

openSUSE 1 release · 5 packages

fixed 5
ruby3-1-rubygem-nokogiri ruby3-2-rubygem-nokogiri ruby3-3-rubygem-nokogiri ruby3-4-rubygem-nokogiri ruby4-0-rubygem-nokogiri
openSUSE fixes for CVE-2022-29181
ReleasePackageFixed inAdvisory
Tumbleweed ruby3-1-rubygem-nokogiri 1.13.6-1.1 openSUSE-SU-2024:12085-1
Tumbleweed ruby3-2-rubygem-nokogiri 1.13.9-1.7 openSUSE-SU-2024:13165-1
Tumbleweed ruby3-3-rubygem-nokogiri 1.15.5-1.5 openSUSE-SU-2024:14174-1
Tumbleweed ruby3-4-rubygem-nokogiri 1.18.2-1.1 openSUSE-SU-2025:14697-1
Tumbleweed ruby4-0-rubygem-nokogiri 1.18.9-1.4 openSUSE-SU-2026:10356-1

ubuntu 2 releases · 1 package

fixed 1 affected 1
ruby-nokogiri
ubuntu fixes for CVE-2022-29181
ReleasePackageFixed in
20.04-ESM ruby-nokogiri 1.10.7+dfsg1-2ubuntu0.1~esm2
22.04 ruby-nokogiri affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.