Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS01eDc5LXc4MmYtZ3c4d84AAwSf
Inefficient Regular Expression Complexity in rails-html-sanitizer
Summary
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.
Mitigation
Upgrade to rails-html-sanitizer >= 1.4.4
.
Severity
The maintainers have evaluated this as High Severity 7.5 (CVSS3.1).
References
- CWE - CWE-1333: Inefficient Regular Expression Complexity (4.9)
- https://hackerone.com/reports/1684163
Credit
This vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q).
Permalink: https://github.com/advisories/GHSA-5x79-w82f-gw8wJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01eDc5LXc4MmYtZ3c4d84AAwSf
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: 7 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-5x79-w82f-gw8w, CVE-2022-23517
References:
- 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
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23517.yml
- https://nvd.nist.gov/vuln/detail/CVE-2022-23517
- https://lists.debian.org/debian-lts-announce/2023/09/msg00012.html
- https://github.com/advisories/GHSA-5x79-w82f-gw8w
Blast Radius: 42.9
Affected Packages
rubygems:rails-html-sanitizer
Dependent packages: 30Dependent repositories: 517,903
Downloads: 437,309,665 total
Affected Version Ranges: < 1.4.4
Fixed in: 1.4.4
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.3
All unaffected versions: 1.4.4, 1.5.0, 1.6.0