Improper output encoding in Rails Action Pack
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.
Summary
The redirect_to method in Rails allows provided values to contain characters which are not legal in an HTTP header value. This results in the potential for downstream services which enforce RFC compliance on HTTP response headers to remove the assigned Location header.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | Action Pack | 7.0.5.1 to before 7.0.5.1; 6.1.7.4 to before 6.1.7.4 | 7.0.5.1, 6.1.7.4 | Patch available | CNA |
| — | actionpack (RubyGems) | before 6.1.7.4 | 6.1.7.4 | Patch available | GHSA-4g8v-vg43-wpgf |
| — | actionpack (RubyGems) | 7.0.0 to before 7.0.5.1 | 7.0.5.1 | Patch available | GHSA-4g8v-vg43-wpgf |
- Action Pack VendorRails Affected 7.0.5.1 to before 7.0.5.1; 6.1.7.4 to before 6.1.7.4 Fixed in 7.0.5.1, 6.1.7.4 Patch available CNA
- actionpack (RubyGems) Vendor— Affected before 6.1.7.4 Fixed in 6.1.7.4 Patch available GHSA-4g8v-vg43-wpgf
- actionpack (RubyGems) Vendor— Affected 7.0.0 to before 7.0.5.1 Fixed in 7.0.5.1 Patch available GHSA-4g8v-vg43-wpgf
Remediation
- Fix · CNA Action Pack (Rails) Fixed in 7.0.5.1, 6.1.7.4
- Fix · GHSA-4g8v-vg43-wpgf actionpack (RubyGems) Fixed in 6.1.7.4 Advisory →
- Fix · GHSA-4g8v-vg43-wpgf actionpack (RubyGems) Fixed in 7.0.5.1 Advisory →
Red Hat 1 advisory
- RHSA-2023:7851 Released 2023-12-14 · Red Hat rating ModerateSatellite 6.14.1 Async Security Update
- Red Hat Satellite 6.14 for RHEL 8 createrepo_c-1.0.2-2.el8pc, createrepo_c-libs-1.0.2-2.el8pc, foreman-3.7.0.10-1.el8sat +47
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 yet |
| Red Hat Satellite 6.14 for RHEL 8 | Fixed | RHSA-2023:7851 |
Not affected: 1 product
- Red Hat Satellite 6.14 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2023-28362
- 2026-10-03 Alias added: GHSA-4g8v-vg43-wpgf
References
Other 8
- https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132
- https://github.com/advisories/GHSA-4g8v-vg43-wpgf
- https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441
- https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5
- https://github.com/rails/rails/commit/c9ab9b32bcdcfd8bcd55907f6c7b20b4e004cc23
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-28362.yml
- https://security.netapp.com/advisory/ntap-20250502-0009
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2023-28362 · CVE Program
- CVE-2023-28362 · NVD
- FIRST EPSS
- GHSA-4g8v-vg43-wpgf · GitHub Advisory Database · CC BY 4.0
- CVE-2023-28362 · 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