Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Rails | Action Pack | 7.0.5.1 – < 7.0.5.1, 6.1.7.4 – < 6.1.7.4 | 7.0.5.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:7.2.2.1+dfsg-1 | — |
| Debian 13 | rails | 2:7.2.2.1+dfsg-1 | — |
| Debian 12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DSA-5881-1 |
| Debian 11 | rails | 2:6.0.3.7+dfsg-2+deb11u3 | DLA-4383-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rails | No fix yet | — |
| Ubuntu 26.04 LTS | rails | No fix yet | — |
| Ubuntu 25.10 | rails | No fix yet | — |
| Ubuntu 24.04 LTS | rails | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rails | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite Utils 6 | foreman +1 | 3.7.0.10-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite Utils 6 | satellite +1 | 6.14.1-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | createrepo_c +3 | 1.0.2-2.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | foreman +1 | 3.7.0.10-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | foreman-installer +1 | 1:3.7.0.5-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | pulpcore-selinux | 2.0.0-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | python-django-import-export +1 | 3.1.0-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | python-gitpython +1 | 3.1.40-0.1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | python-pulp-rpm +1 | 3.19.11-2.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | python-pulpcore +1 | 3.22.19-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | python-urllib3 +1 | 1.26.18-0.1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | rubygem-smart_proxy_remote_execution_ssh | 0.10.2-2.el8sat | RHSA-2023:7851 |
| Red Hat Satellite Capsule 6 | satellite +2 | 6.14.1-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | createrepo_c +3 | 1.0.2-2.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | foreman +13 | 3.7.0.10-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | foreman-installer +1 | 1:3.7.0.5-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | pulpcore-selinux | 2.0.0-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | python-django-import-export +1 | 3.1.0-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | python-gitpython +1 | 3.1.40-0.1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | python-pulp-rpm +1 | 3.19.11-2.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | python-pulpcore +1 | 3.22.19-1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | python-urllib3 +1 | 1.26.18-0.1.el8pc | RHSA-2023:7851 |
| Red Hat Satellite 6 | rubygem-foreman_leapp | 1.1.0-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | rubygem-foreman_remote_execution +1 | 10.1.2-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | rubygem-katello | 4.9.0.18-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | rubygem-rails +12 | 6.1.7.4-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | rubygem-smart_proxy_remote_execution_ssh | 0.10.2-2.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | satellite +2 | 6.14.1-1.el8sat | RHSA-2023:7851 |
| Red Hat Satellite 6 | satellite-convert2rhel-toolkit | 1.0.0-1.el8sat | RHSA-2023:7851 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| SLES 15 SP4 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| SLES 15 SP3 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| SLES 15 SP2 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| SLES 15 SP1 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 9 | rubygem-actionpack-4_2 | 4.2.9-7.18.1 | SUSE-SU-2023:3255-1 |
| SUSE OpenStack Cloud Crowbar 8 | rubygem-actionpack-4_2 | 4.2.9-7.18.1 | SUSE-SU-2023:3255-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| openSUSE Leap 15.4 | rubygem-actionpack-5_1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | < 6.1.7.4 | 6.1.7.4 | GHSA-4g8v-vg43-wpgf |
| RubyGems | actionpack | >= 7.0.0, < 7.0.5.1 | 7.0.5.1 | GHSA-4g8v-vg43-wpgf |
Advisories 7
- RHSA-2023:7851 Red Hat Security Advisory: Satellite 6.14.1 Async Security Update Red Hat Security Advisories (RHSA) · Sep 9, 2026
- DSA-5881-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2023:3255-1 Security update for rubygem-actionpack-4_2 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1577 Ruby on Rails: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Nov 25, 2025
- DLA-4383-1 rails - security update Debian Security (DSA / DLA) · Nov 25, 2025
- SUSE-SU-2023:3229-1 Security update for rubygem-actionpack-5_1 SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-2101 genua genucenter: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 20, 2023
References
- 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