CVE-2022-23516
Uncontrolled Recursion in Loofah
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Loofah es una librería general para manipular y transformar documentos y fragmentos HTML/XML, construida sobre Nokogiri. Loofah versiones >= 2.2.0 y < 2.19.1 usa recursividad para sanitizar secciones CDATA, lo que la hace susceptible al agotamiento de la pila de memoria y genera una excepción SystemStackError. Esto puede provocar una denegación de servicio debido al consumo de recursos de la CPU. Este problema se solucionó en la versión 2.19.1. Los usuarios que no puedan actualizar pueden mitigar esta vulnerabilidad limitando la longitud de las cadenas que se sanitizan.
An uncontrolled recursion vulnerability was found in rubygem loofah. While sanitizing certain sections, loofah is susceptible to stack exhaustion, which can result in a denial of service through CPU resource consumption.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-01-19 CVE Reserved
- 2022-12-14 CVE Published
- 2024-07-06 EPSS Updated
- 2024-08-03 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-674: Uncontrolled Recursion
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm | Third Party Advisory | |
https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2022-23516 | 2023-05-03 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2153241 | 2023-05-03 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Loofah Project Search vendor "Loofah Project" | Loofah Search vendor "Loofah Project" for product "Loofah" | >= 2.2.0 < 2.19.1 Search vendor "Loofah Project" for product "Loofah" and version " >= 2.2.0 < 2.19.1" | ruby |
Affected
|