CVE-2022-23514
Loofah Project Loofah vulnerability
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah < 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1.
Affected products
Loofah. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Loofah Project Loofah runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh
- github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143
- github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23514.yml
- nvd.nist.gov/vuln/detail/CVE-2022-23514
- hackerone.com/reports/1684163
- lists.debian.org/debian-lts-announce/2023/09/msg00011.html
- lists.debian.org/debian-lts-announce/2024/09/msg00044.html
- github.com/advisories/GHSA-486f-hjj9-9vhh
- nvd.nist.gov/vuln/detail/CVE-2022-23514
- cve.org/CVERecord?id=CVE-2022-23514
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.