Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 886025 (CVE-2022-23514, CVE-2022-23515, CVE-2022-23516)

Summary: <dev-ruby/loofah-2.19.1: multiple vulnerabilities
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: IN_PROGRESS ---    
Severity: minor CC: ruby
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh
See Also: https://bugs.gentoo.org/show_bug.cgi?id=886023
Whiteboard: B3 [glsa?]
Package list:
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-15 06:01:39 UTC
CVE-2022-23514 (https://hackerone.com/reports/1684163):

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.

Please stabilize 2.19.1.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-15 06:02:20 UTC
CVE-2022-23516 (https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm):

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.

CVE-2022-23515 (https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx):
https://github.com/flavorjones/loofah/issues/101
https://hackerone.com/reports/1694173

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.1.0, < 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1.

Whoops, couple more. Same severity/fixed version.
Comment 2 Hans de Graaff gentoo-dev Security 2022-12-18 09:09:11 UTC
amd64 stable.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-18 16:06:34 UTC
Please cleanup
Comment 4 Hans de Graaff gentoo-dev Security 2022-12-21 07:35:06 UTC
Cleanup done.