CVE-2022-23514 Inefficient Regular Expression Complexity in Loofah
HighCVSS 7.5
EPSS 1.8%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-loofah(Ubuntu 16.04) | = 2.0.2-1; = 2.0.3-1; = 2.0.3-2; = 2.0.3-2+deb9u1build0.16.04.1 +3 more | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 18.04) | = 2.0.3-2; = 2.2.2-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 20.04) | = 2.2.3-1; = 2.3.1+dfsg-1; = 2.4.0+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-loofah(Ubuntu 22.04) | = 2.12.0-1; = 2.13.0-1; = 2.13.0-2; All versions | No fix listed | No fix yet |
| debian/ruby-loofah(Debian 12) | < 2.19.1-1 | 2.19.1-1 | Fixed |
| debian/ruby-loofah(Debian 13) | < 2.19.1-1 | 2.19.1-1 | Fixed |
| debian/ruby-loofah(Debian 14) | < 2.19.1-1 | 2.19.1-1 | Fixed |
| loofah project loofah | < 2.19.1 | 2.19.1 | Fixed |
| rubygems loofah(RubyGems) | < 2.19.1; = 0.2.0; = 0.2.1; = 0.2.2 +46 more | 2.19.1 | Fixed |
| flavorjones loofah | = < 2.19.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems loofah(RubyGems) | < 2.19.1 | 2.19.1 |
| rubygems loofah(RubyGems) | = 0.2.0 | No fix listed |
| rubygems loofah(RubyGems) | = 0.2.1 | No fix listed |
| rubygems loofah(RubyGems) | = 0.2.2 | No fix listed |
| rubygems loofah(RubyGems) | = 0.3.0 | No fix listed |
| rubygems loofah(RubyGems) | = 0.3.1 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.0 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.1 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.2 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.3 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.4 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.5 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.6 | No fix listed |
| rubygems loofah(RubyGems) | = 0.4.7 | No fix listed |
| rubygems loofah(RubyGems) | = 1.0.0 | No fix listed |
| rubygems loofah(RubyGems) | = 1.0.0.beta.1 | No fix listed |
| rubygems loofah(RubyGems) | = 1.1.0 | No fix listed |
| rubygems loofah(RubyGems) | = 1.2.0 | No fix listed |
| rubygems loofah(RubyGems) | = 1.2.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.0.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.0.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.0.2 | No fix listed |
| rubygems loofah(RubyGems) | = 2.0.3 | No fix listed |
| rubygems loofah(RubyGems) | = 2.1.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.1.0.rc1 | No fix listed |
Show 48 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems loofah(RubyGems) | = 2.1.0.rc2 | No fix listed |
| rubygems loofah(RubyGems) | = 2.1.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.10.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.11.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.12.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.13.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.14.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.15.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.16.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.17.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.18.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.19.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.2.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.2.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.2.2 | No fix listed |
| rubygems loofah(RubyGems) | = 2.2.3 | No fix listed |
| rubygems loofah(RubyGems) | = 2.3.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.3.1 | No fix listed |
| rubygems loofah(RubyGems) | = 2.4.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.5.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.6.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.7.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.8.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.9.0 | No fix listed |
| rubygems loofah(RubyGems) | = 2.9.1 | No fix listed |
| flavorjones loofah | = < 2.19.1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:22.04) | All versions | No fix listed |
| loofah project loofah | < 2.19.1 | 2.19.1 |
| debian/ruby-loofah(Debian:12) | < 2.19.1-1 | 2.19.1-1 |
| debian/ruby-loofah(Debian:14) | < 2.19.1-1 | 2.19.1-1 |
| debian/ruby-loofah(Debian:13) | < 2.19.1-1 | 2.19.1-1 |
| ubuntu/ruby-loofah(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.2-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.3-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.3-2 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.3-2+deb9u1build0.16.04.1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.3-2+deb9u2build0.16.04.1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:16.04) | = 2.0.3-2+deb9u3build0.16.04.1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:18.04) | = 2.0.3-2 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:18.04) | = 2.2.2-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:20.04) | = 2.2.3-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:20.04) | = 2.3.1+dfsg-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:20.04) | = 2.4.0+dfsg-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:22.04) | = 2.12.0-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:22.04) | = 2.13.0-1 | No fix listed |
| ubuntu/ruby-loofah(Ubuntu:22.04) | = 2.13.0-2 | No fix listed |
References
- https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- https://hackerone.com/reports/1684163 issue-tracking permissions-required third-party-advisory
- github.com product
- github.com exploit
- lists.debian.org
- lists.debian.org
- Debian Security Tracker CVE-2022-23514 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking