CVE-2023-22795 json
ReDoS based DoS vulnerability in Action Dispatch
published 2023-01-18 3 y ago modified 2026-10-24 15 d ago also GHSA-8xww-x3g3-6jcv , EUVD-2023-0417
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
A regular expression based DoS vulnerability in Action Dispatch <6.1.7.1 and <7.0.4.1 related to the If-None-Match header. A specially crafted HTTP If-None-Match header can cause the regular expression engine to enter a state of catastrophic backtracking, when on a version of Ruby below 3.2.0. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability All users running an affected release should either upgrade or use one of the workarounds immediately.
Patch / fix
- rubygems actionpack 6.1.7.1, 7.0.4.1
- rubyonrails rails 6.1.7.1, 7.0.4.1
- rails Debian 14, Debian 13, Debian 12 2:6.1.7.3+dfsg-1
debian advisories DEBIAN-CVE-2023-22795
- foreman satellite utils 6.14, satellite capsule 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-cli satellite utils 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-ec2 satellite 6.14 3.7.0.9-1.el8sat
- rubygem-git satellite 6.14 1.18.0-1.el8sat
- puppet-agent satellite capsule 6.14, satellite 6.14 7.26.0-3.el8sat
- puppetserver satellite capsule 6.14, satellite 6.14 7.11.0-1.el8sat
- rubygem-rack satellite capsule 6.14, satellite 6.14 2.2.7-1.el8sat
- foreman-ovirt satellite 6.14 3.7.0.9-1.el8sat
red hat advisories RHSA-2023:6818
- rubygem-actionpack-5_1 SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +2 more 5.1.4-150000.3.15.1
- rubygem-actionpack-4_2 OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 4.2.9-7.15.1
suse advisories SUSE-SU-2023:0444-1SUSE-SU-2023:0442-1
- rubygem-actionpack-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
- rubygem-actionpack-7.0 openSUSE Tumbleweed 7.0.8.4-1.1
- rubygem-actionpack-7.0 openSUSE Tumbleweed 7.0.4.1-1.1
opensuse advisories openSUSE-SU-2025:15110-1openSUSE-SU-2024:14067-1openSUSE-SU-2024:12765-1
- github.com/rails/rails@8d82687 commit
- github.com/rails/rails@8dc4595 commit
- github.com/rails/rails@cd461c3 commit
- github.com/rails/rails/releases/tag/v6.1.7.1 release
- github.com/rails/rails/releases/tag/v7.0.4.1 release
- discuss.rubyonrails.org/t/cve-2023-22795-possible-redos-based-dos-vulnerability-in… advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-22795 updated cvss 7.5
rubygem-actionpack: Denial of Service in Action Dispatch
-
Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8affected: no fix planned “Will not fix”
-
Red Hat Satellite 6.14 for RHEL 8 rubygem-actionpack 6.1.7.3-1.el8satfixed: vendor fix RHSA-2023:6818
-
Red Hat Satellite 6.14 for RHEL 8 cjson 1.7.14-5.el8sat, katello 4.9.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, candlepin 4.3.1-1.el8sat, +668 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.28% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=4.0.0.beta1, <6.1.7.1 >=7.0.0, <7.0.4.1 |
6.1.7.1 7.0.4.1 |
Affected products
- n/a https://github.com/rails/rails
Classification
- Weakness
- Technology feeds
References
-
discuss.rubyonrails.org
/t/cve-2023-22795-possible-redos-based-dos-vulnerability-in-action-dispatch/82118
web, patch, vendor-advisory
-
github.com
/rails/rails/commit/8d82687f3b04b2803320b64f985308239a8c3d2f
web
-
github.com
/rails/rails/commit/8dc45950619a4c64d16fb9370570c996d201f9b0
web
-
github.com
/rails/rails/commit/cd461c3e64e09cdcb1e379d1c35423c5e2caa592
web
-
debian.org
/security/2023/dsa-5372
vendor-advisory, third-party-advisory
- security.netapp.com /advisory/ntap-20240202-0010/
-
nvd.nist.gov
/vuln/detail/CVE-2023-22795
advisory
-
github.com
/rails/rails
package
-
github.com
/rails/rails/releases/tag/v6.1.7.1
web
-
github.com
/rails/rails/releases/tag/v7.0.4.1
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-22795.yml
web
-
rubyonrails.org
/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
web
Sources
- CVE List CVE-2023-22795
- GitHub Advisory GHSA-8xww-x3g3-6jcv
- NVD CVE-2023-22795
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.