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) - <dev-ruby/loofah-2.19.1: multiple vulnerabilities
Summary: <dev-ruby/loofah-2.19.1: multiple vulnerabilities
Status: IN_PROGRESS
Alias: CVE-2022-23514, CVE-2022-23515, CVE-2022-23516
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL: https://github.com/flavorjones/loofah...
Whiteboard: B3 [glsa?]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 06:01 UTC by John Helmert III
Modified: 2022-12-21 16:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.