Bug 1206433 (CVE-2022-23517) - VUL-0: CVE-2022-23517: rubygem-rails-html-sanitizer: inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes
Summary: VUL-0: CVE-2022-23517: rubygem-rails-html-sanitizer: inefficient regular expr...
Status: RESOLVED FIXED
Alias: CVE-2022-23517
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Paolo Perego
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/350750/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-23517:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 07:14 UTC by Alexander Bergmann
Modified: 2023-09-29 08:20 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2022-12-15 07:14:57 UTC
CVE-2022-23517

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails
applications. Certain configurations of rails-html-sanitizer < 1.4.4 use 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 has been patched in version
1.4.4.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-23517
https://www.cve.org/CVERecord?id=CVE-2022-23517
https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-5x79-w82f-gw8w
https://github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979
https://hackerone.com/reports/1684163
Comment 11 Maintenance Automation 2023-09-05 16:30:25 UTC
SUSE-SU-2023:3534-1: An update that solves four vulnerabilities can now be installed.

Category: security (important)
Bug References: 1206433, 1206434, 1206435, 1206436
CVE References: CVE-2022-23517, CVE-2022-23518, CVE-2022-23519, CVE-2022-23520
Sources used:
SUSE OpenStack Cloud Crowbar 8 (src): rubygem-rails-html-sanitizer-1.0.3-8.14.1
SUSE OpenStack Cloud Crowbar 9 (src): rubygem-rails-html-sanitizer-1.0.3-8.14.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Maintenance Automation 2023-09-20 20:30:01 UTC
SUSE-SU-2023:3714-1: An update that solves four vulnerabilities can now be installed.

Category: security (important)
Bug References: 1206433, 1206434, 1206435, 1206436
CVE References: CVE-2022-23517, CVE-2022-23518, CVE-2022-23519, CVE-2022-23520
Sources used:
openSUSE Leap 15.4 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
openSUSE Leap 15.5 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP1 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP2 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP3 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP4 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1
SUSE Linux Enterprise High Availability Extension 15 SP5 (src): rubygem-rails-html-sanitizer-1.0.4-150000.4.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.