CVE-2022-23516
published high CVSS 3.1 · 7.5Uncontrolled Recursion in Loofah
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| flavorjones | — | loofah>= 2.2.0, < 2.19.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | bullseye | ruby-loofah | Advisory build | 2.7.0+dfsg-1+deb11u1 | DLA-3901-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-loofahaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Debian | buster | ruby-loofah | Advisory build | 2.2.3-1+deb10u2 | DLA-3565-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-loofahppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-loofahs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
Show 51 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-loofahx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-loofahaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-loofahppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-loofahs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-loofahx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-loofahaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-loofahppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-loofahs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-loofahx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-loofahaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-loofahppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-loofahs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-loofahx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofahaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofahppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofahs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofahx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-docaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-docppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-docs390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-docx86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-testsuiteaarch64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-testsuiteppc64le | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-testsuites390x | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-loofah-testsuitex86_64 | Advisory build | 2.2.2-150000.4.9.1 | SUSE-SU-2023:1657-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-loofahaarch64 | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-loofahppc64le | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-loofahs390x | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-loofahx86_64 | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-loofahaarch64 | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-loofahppc64le | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-loofahs390x | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-loofahx86_64 | Advisory build | 2.19.1-1.1 | OPENSUSE-SU-2024:12768-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-loofahaarch64 | Advisory build | 2.22.0-1.5 | OPENSUSE-SU-2024:14171-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-loofahppc64le | Advisory build | 2.22.0-1.5 | OPENSUSE-SU-2024:14171-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-loofahs390x | Advisory build | 2.22.0-1.5 | OPENSUSE-SU-2024:14171-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-loofahx86_64 | Advisory build | 2.22.0-1.5 | OPENSUSE-SU-2024:14171-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-loofahaarch64 | Advisory build | 2.23.1-1.3 | OPENSUSE-SU-2025:15120-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-loofahppc64le | Advisory build | 2.23.1-1.3 | OPENSUSE-SU-2025:15120-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-loofahs390x | Advisory build | 2.23.1-1.3 | OPENSUSE-SU-2025:15120-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-loofahx86_64 | Advisory build | 2.23.1-1.3 | OPENSUSE-SU-2025:15120-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-loofahaarch64 | Advisory build | 2.23.1-1.5 | OPENSUSE-SU-2026:10353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-loofahppc64le | Advisory build | 2.23.1-1.5 | OPENSUSE-SU-2026:10353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-loofahs390x | Advisory build | 2.23.1-1.5 | OPENSUSE-SU-2026:10353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-loofahx86_64 | Advisory build | 2.23.1-1.5 | OPENSUSE-SU-2026:10353-1 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2097 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flavorjones | loofah | >= 2.2.0, < 2.19.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
3Provider assertions
3GitHub_M · cna
Uncontrolled Recursion in Loofah
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 01d4ddfd8a09e11cd85f734580168e4b8241f06edec984989b017e521cc9f4bc
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record