Skip to content
Fencer Vulns
high 7.5

CVE-2022-24836 json

Inefficient Regular Expression Complexity in Nokogiri

published 2022-04-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-crjr-9rc5-ghw8 , EUVD-2022-1712

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
3.5%
EPSS 3.5% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue.

Patch / fix

  • rubygems nokogiri 1.13.4
  • nokogiri nokogiri 1.13.4
  • apple macos 13.1
  • ruby-nokogiri Debian 14, Debian 13, Debian 12 1.13.5+dfsg-1

debian advisories DEBIAN-CVE-2022-24836

  • foreman satellite utils 6.12, satellite capsule 6.12, satellite 6.12 3.3.0.17-1.el8sat
  • candlepin satellite 6.12 4.1.15-1.el8sat
  • foreman-cli satellite utils 6.12, satellite 6.12 3.3.0.17-1.el8sat
  • foreman-ec2 satellite 6.12 3.3.0.17-1.el8sat
  • foreman-gce satellite 6.12 3.3.0.17-1.el8sat
  • rubygem-git satellite 6.12 1.11.0-1.el8sat
  • foreman-ovirt satellite 6.12 3.3.0.17-1.el8sat
  • python-django satellite capsule 6.12, satellite 6.12 3.2.14-2.el8pc

red hat advisories RHSA-2022:8506

  • rubygem-nokogiri SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 1.8.5-150400.14.3.1
  • rubygem-nokogiri SLE Module for Basesystem 15 SP3, SLE High Availability Extension 15 SP2, SLE High Availability Extension 15 SP1 +2 more 1.8.5-150000.3.9.1
  • rubygem-nokogiri OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 1.6.1-5.6.1

suse advisories SUSE-SU-2022:4016-1SUSE-SU-2022:4015-1SUSE-SU-2022:3890-1

  • rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
  • rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
  • rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
  • rubygem-nokogiri openSUSE Tumbleweed 1.13.4-1.1
  • ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.13.9-1.7

opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:11999-1openSUSE-SU-2024:13165-1

  • libdb Rocky Linux 8 5.3.28-42.el8_4

rocky linux advisories RLSA-2022:8506

  • ruby-nokogiri Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.13.4-r0

alpine advisories ALPINE-CVE-2022-24836

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-24836 updated cvss 7.5

nokogiri: ReDoS in HTML encoding detection

  • Red Hat CloudForms Management Engine 5 rubygem-nokogiri
    affected: no fix planned “Will not fix”
  • Red Hat Satellite 6 tfm-ror51-rubygem-nokogiri, tfm-ror52-rubygem-nokogiri
    affected: no fix available “Fix deferred”
  • Red Hat Satellite 6.12 for RHEL 8 rubygem-nokogiri 1.13.8-1.el8sat
    fixed: vendor fix RHSA-2022:8506
  • Red Hat Satellite 6.12 for RHEL 8 cjson 1.7.14-5.el8sat, libdb 5.3.28-42.el8_4, katello 4.5.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, +640 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.52% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
rubygems nokogiri
<1.13.4
1.13.4

Affected products

  • sparklemotion nokogiri

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.