cve.bz

CVE-2022-23517

7.5 highEPSS 1.6%Fix available

High (7.5). EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in rails-html-sanitizer 1.4.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-02-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23517 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23517?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23517?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23517 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:rails_html_sanitizersbefore 1.4.4
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5x79-w82f-gw8wRubyGemsrails-html-sanitizer<1.4.41.4.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby-rails-html-sanitizer1.0.4-1+deb10u2DLA-3566-1
Debian11ruby-rails-html-sanitizer1.3.0-1+deb11u1DLA-3902-1
Debian12, 13, 14ruby-rails-html-sanitizer1.4.4-1DEBIAN-CVE-2022-23517
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moreruby-rails-html-sanitizerno fix listedUBUNTU-CVE-2022-23517
Red Hatsatellite:6.13::el8foreman-obsolete-packages0:1.1-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8postgresql-evr0:0.0.2-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8python-websockify, python3-websockify0:0.10.0-3.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8qpid-dispatch, qpid-dispatch-tools, qpid-dispatch-router and 2 more0:1.14.0-6.el8RHSA-2023:2097
Red Hatsatellite:6.13::el8qpid-proton, qpid-proton-c, python3-qpid-proton and 5 more0:0.33.0-4.el8RHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-acts_as_list0:1.0.3-2.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-algebrick, rubygem-websocket-driver, rubygem-websocket-driver-debuginfo and 1 more0:0.7.5-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-anemone0:0.7.2-23.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-apipie-rails0:0.8.2-1.1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_compute0:0.22.0-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_network0:0.26.1-2.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_resources0:0.18.2-1.el8satRHSA-2023:2097
188 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Availability Extension 15 SP3 and 2 morerubygem-rails-html-sanitizer1.0.4-150000.4.6.1SUSE-SU-2023:3714-1
SUSEOpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9rubygem-rails-html-sanitizer1.0.3-8.14.1SUSE-SU-2023:3534-1
openSUSELeap 15.4, Leap 15.5rubygem-rails-html-sanitizer1.0.4-150000.4.6.1SUSE-SU-2023:3714-1
openSUSETumbleweedrubygem-rails-html-sanitizer1.5.0-1.1openSUSE-SU-2024:12769-1
openSUSETumbleweedrubygem-rails-html-sanitizer1.6.0-1.5openSUSE-SU-2024:14175-1
openSUSETumbleweedrubygem-rails-html-sanitizer1.6.0-1.7openSUSE-SU-2025:15125-1
openSUSETumbleweedrubygem-rails-html-sanitizer1.6.0-1.9openSUSE-SU-2026:10361-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Satellite 6.13 for RHEL 8satellite:el8/rubygem-rails-html-sanitizer-0:1.4.4-1.el8satFixed 2023-05-03RHSA-2023:2097
Red Hat 3scale API Management Platform 23scale-amp-zync-containerWill not fix
Red Hat Satellite 6tfm-ror51-rubygem-rails-html-sanitizerOut of support scope
Red Hat Satellite 6tfm-ror52-rubygem-rails-html-sanitizerOut of support scope
Red Hat Satellite 6tfm-rubygem-rails-html-sanitizerAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23517.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON