High severity · published Dec 14, 2022
CVE-2022-23516
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri
7.5
CVSS
1.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 67% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LO
Loofah · Loofah Project
2.2.0 before 2.19.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-23516
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-23516
Third Party Advisory
https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm
lists.debian.org
https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html
lists.debian.org
https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html
More from Loofah
7.5
CVE-2022-23514
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri
6.1
CVE-2022-23518
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
6.1
CVE-2022-23515
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri
6.1
CVE-2018-8048
In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML fragment
5.4
CVE-2019-15587
In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished
