Vulnerability · Published Dec 14, 2022 · Assigned by GitHub_M
CVE-2022-23514Inefficient Regular Expression Complexity in Loofah
High 7.5
In plain English
A high-severity regular-expression denial of service in loofah from flavorjones. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-loofah | 2.19.1-1 | DEBIAN-CVE-2022-23514 |
| Debian:13 | ruby-loofah | 2.19.1-1 | DEBIAN-CVE-2022-23514 |
| Debian:14 | ruby-loofah | 2.19.1-1 | DEBIAN-CVE-2022-23514 |
| RubyGems | loofah | 2.19.1 | GHSA-486f-hjj9-9vhh |
| Ubuntu:22.04:LTS | ruby-loofah | no fix listed | UBUNTU-CVE-2022-23514 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| flavorjones | loofah | < 2.19.1 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H