CVE catalog

CVE-2022-29181

ruby-nokogiri: CVE-2022-29181

[CVE catalog]

Severity
High · CVSS 8.2CVSS: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.

DistributionPackageReleaseVersionStatus
Debianruby-nokogirisid1.19.4+dfsg-1fixed
Debianruby-nokogiriforky1.19.4+dfsg-1fixed
Debianruby-nokogiritrixie1.18.2+dfsg-1fixed
Debianruby-nokogiribookworm1.13.10+dfsg-2fixed
Ubunturuby-nokogiripro1.11.1+dfsg-2ubuntu1vulnerable
Ubunturuby-nokogiripro1.11.7+dfsg-3vulnerable
Ubunturuby-nokogiripro1.11.7+dfsg-3build1vulnerable
Ubunturuby-nokogiripro1.13.1+dfsg-2vulnerable
Ubunturuby-nokogiripro1.13.1+dfsg-2ubuntu0.1~esm1fixed
Opensuserubygem-nokogiritumbleweed1.13.6-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-nokogirisourcesid1.13.7+dfsg-1unimportantNot reportedNot reported
Debianruby-nokogirisourceforky1.13.7+dfsg-1unimportantNot reportedNot reported
Debianruby-nokogirisourcetrixie1.13.7+dfsg-1unimportantNot reportedNot reported
Debianruby-nokogirisourcebookworm1.13.7+dfsg-1unimportantNot reportedNot reported
Ubunturuby-nokogiridebpro1.13.1+dfsg-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2022-29181Not reported
Opensuserubygem-nokogirirpmtumbleweed1.13.6-1.1Not reportedOPENSUSE-SU-2024:12085-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [rubygem-nokogiri]

    Details (1)
    • 1.19.4-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 1.13.6-1.1

      Version impact unknown

      dsa · rubygem-nokogiri · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [ruby-nokogiri]

    Details (2)
    • 1.13.10+dfsg-2+b1 · amd64 · bookworm

      Fixed · Fixed: 1.13.7+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

    • 1.13.10+dfsg-2+b1 · arm64 · bookworm

      Fixed · Fixed: 1.13.7+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

Observed:

References