CVE catalog

CVE-2022-23516

ruby-loofah: CVE-2022-23516

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.17% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-loofahsid2.25.2-1fixed
Debianruby-loofahforky2.25.2-1fixed
Debianruby-loofahtrixie2.24.0-1fixed
Debianruby-loofahbookworm2.19.1-1fixed
Ubunturuby-loofah16.042.0.2-1vulnerable
Ubunturuby-loofah16.042.0.3-1vulnerable
Ubunturuby-loofah16.042.0.3-2vulnerable
Ubunturuby-loofah16.042.0.3-2+deb9u1build0.16.04.1vulnerable
Ubunturuby-loofah16.042.0.3-2+deb9u2build0.16.04.1vulnerable
Ubunturuby-loofah16.042.0.3-2+deb9u3build0.16.04.1vulnerable
Ubunturuby-loofah18.042.0.3-2vulnerable
Ubunturuby-loofah18.042.2.2-1vulnerable
Ubunturuby-loofah20.042.2.3-1vulnerable
Ubunturuby-loofah20.042.3.1+dfsg-1vulnerable
Ubunturuby-loofah20.042.4.0+dfsg-1vulnerable
Ubunturuby-loofah22.042.12.0-1vulnerable
Ubunturuby-loofah22.042.13.0-1vulnerable
Ubunturuby-loofah22.042.13.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-loofahsourcesid2.19.1-1not yet assignedNot reported[1026083]
Debianruby-loofahsourceforky2.19.1-1not yet assignedNot reported[1026083]
Debianruby-loofahsourcetrixie2.19.1-1not yet assignedNot reported[1026083]
Debianruby-loofahsourcebookworm2.19.1-1not yet assignedNot reported[1026083]

[Debian bug #1026083]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.19.1-1 · all · bookworm

      Fixed · Fixed: 2.19.1-1

      dsa · ruby-loofah · debian · bookworm

    • 2.19.1-1 · all · bookworm

      Fixed · Fixed: 2.19.1-1

      dsa · ruby-loofah · debian · bookworm

Observed:

References