Lucene search

K
rubygemsRubySecRUBY:LOOFAH-2022-23514
HistoryDec 12, 2022 - 9:00 p.m.

Inefficient Regular Expression Complexity in Loofah

2022-12-1221:00:00
RubySec
github.com
6
loofah
regular expression
vulnerability
svg
denial of service
upgrade
cpu resource consumption
software

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Summary

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.

Mitigation

Upgrade to Loofah >= 2.19.1.

Affected configurations

Vulners
Node
rubyloofahRange2.19.1
VendorProductVersionCPE
rubyloofah*cpe:2.3:a:ruby:loofah:*:*:*:*:*:*:*:*

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H