CVE-2022-23516 Uncontrolled Recursion in Loofah
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · 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.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.
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.2.0, < 2.19.1 | 2.19.1 | Fixed |
| rubygems loofah(RubyGems) | = 2.2.0; = 2.2.1; = 2.2.2; = 2.2.3 +20 more | 2.19.1 | Fixed |
| flavorjones loofah | = >= 2.2.0, < 2.19.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems loofah(RubyGems) | >= 2.2.0, < 2.19.1 | 2.19.1 |
| 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.2.0, < 2.19.1 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/ruby-loofah(Ubuntu:22.04) | All versions | No fix listed |
| loofah project loofah | >= 2.2.0, < 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-3x8r-x6xp-q4vm issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com exploit
- lists.debian.org
- lists.debian.org
- Debian Security Tracker CVE-2022-23516 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking