Name | CVE-2022-23517 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3566-1, DLA-3902-1 |
Debian Bugs | 1027153 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ruby-rails-html-sanitizer (PTS) | stretch (lts), stretch | 1.0.3-2+deb9u1 | vulnerable |
buster (security), buster, buster (lts) | 1.0.4-1+deb10u2 | fixed | |
bullseye | 1.3.0-1 | vulnerable | |
bullseye (security) | 1.3.0-1+deb11u1 | fixed | |
sid, trixie, bookworm | 1.4.4-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ruby-rails-html-sanitizer | source | stretch | (unfixed) | end-of-life | ||
ruby-rails-html-sanitizer | source | buster | 1.0.4-1+deb10u2 | DLA-3566-1 | ||
ruby-rails-html-sanitizer | source | bullseye | 1.3.0-1+deb11u1 | DLA-3902-1 | ||
ruby-rails-html-sanitizer | source | (unstable) | 1.4.4-1 | 1027153 |
https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-5x79-w82f-gw8w
https://github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979