Skip to content
Fencer Vulns
high 7.5

CVE-2022-23516 json

Uncontrolled Recursion in Loofah

published 2022-12-13 3 y ago modified 2026-06-17 4 mo ago also GHSA-3x8r-x6xp-q4vm , EUVD-2022-7493

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

Summary

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CDATA sections, making it susceptible to stack exhaustion and raising a SystemStackError exception. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1. Users who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.

Patch / fix

  • rubygems loofah 2.19.1
  • loofah_project loofah 2.19.1
  • ruby-loofah Debian 14, Debian 13, Debian 12 2.19.1-1

debian advisories DEBIAN-CVE-2022-23516

  • cjson satellite capsule 6.13, satellite 6.13 1.7.14-5.el8sat
  • foreman satellite utils 6.13, satellite capsule 6.13, satellite 6.13 3.5.1.14-1.el8sat
  • katello satellite capsule 6.13, satellite 6.13 4.7.0-1.el8sat
  • libsolv satellite capsule 6.13, satellite 6.13 0.7.22-4.el8pc
  • libcomps satellite capsule 6.13, satellite 6.13 0.1.18-4.el8pc
  • qpid-cpp satellite capsule 6.13, satellite 6.13 1.39.0-7.el8amq
  • qpid-qmf satellite capsule 6.13, satellite 6.13 1.39.0-7.el8amq
  • candlepin satellite 6.13 4.2.13-1.el8sat

red hat advisories RHSA-2023:2097

  • rubygem-loofah SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +2 more 2.2.2-150000.4.9.1

suse advisories SUSE-SU-2023:1657-1

  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.5
  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.3
  • rubygem-loofah openSUSE Tumbleweed 2.22.0-1.5
  • rubygem-loofah openSUSE Tumbleweed 2.19.1-1.1

opensuse advisories openSUSE-SU-2026:10353-1openSUSE-SU-2025:15120-1openSUSE-SU-2024:14171-1openSUSE-SU-2024:12768-1

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-23516 updated cvss 7.5

rubygem-loofah: Uncontrolled Recursion leading to denial of service

  • Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8
    affected: no fix planned “Will not fix”
  • Red Hat Satellite 6 rubygem-loofah, tfm-ror51-rubygem-loofah, tfm-ror52-rubygem-loofah
    affected: no fix available, no fix planned “Out of support scope”
  • Red Hat Satellite 6.13 for RHEL 8 rubygem-loofah 2.19.1-1.el8sat
    fixed: vendor fix RHSA-2023:2097
  • Red Hat Satellite 6.13 for RHEL 8 cjson 1.7.14-5.el8sat, katello 4.7.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, python-pbr 5.8.0-4.el8pc, +670 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

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.17% chance of exploitation in the next 30 days, higher than 67% 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
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 loofah
>=2.2.0, <2.19.1
2.19.1

Affected products

  • flavorjones loofah

Classification

Weakness

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.