Uncontrolled resource consumption in https://github.com/rails/rails
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | https://github.com/rails/rails | 6.1.7.1, 7.0.4.1 | — | No fix listed | CNA |
| — | actionpack (RubyGems) | 4.0.0.beta1 to before 6.1.7.1 | 6.1.7.1 | Patch available | GHSA-8xww-x3g3-6jcv |
| — | actionpack (RubyGems) | 7.0.0 to before 7.0.4.1 | 7.0.4.1 | Patch available | GHSA-8xww-x3g3-6jcv |
- https://github.com/rails/rails Vendor— Affected 6.1.7.1, 7.0.4.1 Fixed in — No fix listed CNA
- actionpack (RubyGems) Vendor— Affected 4.0.0.beta1 to before 6.1.7.1 Fixed in 6.1.7.1 Patch available GHSA-8xww-x3g3-6jcv
- actionpack (RubyGems) Vendor— Affected 7.0.0 to before 7.0.4.1 Fixed in 7.0.4.1 Patch available GHSA-8xww-x3g3-6jcv
Remediation
- Fix · GHSA-8xww-x3g3-6jcv actionpack (RubyGems) Fixed in 6.1.7.1 Advisory →
- Fix · GHSA-8xww-x3g3-6jcv actionpack (RubyGems) Fixed in 7.0.4.1 Advisory →
Red Hat 1 advisory
- RHSA-2023:6818 Released 2023-11-08 · Red Hat rating ImportantSatellite 6.14 security and bug fix update
- Red Hat Satellite 6.14 for RHEL 8 foreman-3.7.0.9-1.el8sat, foreman-cli-3.7.0.9-1.el8sat, foreman-debug-3.7.0.9-1.el8sat +33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6.14 for RHEL 8 | Fixed | RHSA-2023:6818 |
Not affected: 1 product
- Red Hat Satellite 6.14 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2023-22795
- 2026-10-03 Alias added: GHSA-8xww-x3g3-6jcv
References
Other 9
- https://security.netapp.com/advisory/ntap-20240202-0010/
- https://github.com/rails/rails/commit/8d82687f3b04b2803320b64f985308239a8c3d2f
- https://github.com/rails/rails/commit/8dc45950619a4c64d16fb9370570c996d201f9b0
- https://github.com/rails/rails/commit/cd461c3e64e09cdcb1e379d1c35423c5e2caa592
- https://github.com/rails/rails
- https://github.com/rails/rails/releases/tag/v6.1.7.1
- https://github.com/rails/rails/releases/tag/v7.0.4.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-22795.yml
- https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
Sources
- CVE-2023-22795 · CVE Program
- CVE-2023-22795 · NVD
- FIRST EPSS
- GHSA-8xww-x3g3-6jcv · GitHub Advisory Database · CC BY 4.0
- CVE-2023-22795 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences