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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.8%top 21.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12ruby-loofah2.19.1-1DEBIAN-CVE-2022-23514
Debian:13ruby-loofah2.19.1-1DEBIAN-CVE-2022-23514
Debian:14ruby-loofah2.19.1-1DEBIAN-CVE-2022-23514
RubyGemsloofah2.19.1GHSA-486f-hjj9-9vhh
Ubuntu:22.04:LTSruby-loofahno fix listedUBUNTU-CVE-2022-23514

Affected products (as reported)

VendorProductVersions
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

References