CVE-2023-28362 Actionpack has possible cross-site scripting vulnerability via User Supplied Values to redirect_to
Attackers can inject illegal characters into redirect headers, causing compliant downstream services to drop the Location header, potentially bypassing security controls.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-28362?
CVE-2023-28362 is a medium-severity vulnerability in Rails Action Pack, published on 9 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-116
Which versions are affected by CVE-2023-28362?
4 open source packages ship an affected version, including actionpack.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | All versions | 6.1.7.4 |
actionpack RubyGems | All versions | 6.1.7.4 |
actionpack RubyGems | From 7.0.0 | 7.0.5.1 |
actionpack RubyGems | From 7.0.0 | 7.0.5.1 |
Linux distribution packages (9)
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP1 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP2 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP3 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP4 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP5 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-4_2 SUSE:OpenStack Cloud Crowbar 8 | All versions | 4.2.9-7.18.1 |
rubygem-actionpack-4_2 SUSE:OpenStack Cloud Crowbar 9 | All versions | 4.2.9-7.18.1 |
rubygem-actionpack-5_1 openSUSE:Leap 15.4 | All versions | 5.1.4-150000.3.18.1 |
rubygem-actionpack-5_1 openSUSE:Leap 15.5 | All versions | 5.1.4-150000.3.18.1 |
How do I fix CVE-2023-28362?
Upgrade actionpack to a fixed version for your release line: 6.1.7.4 or 7.0.5.1.
Is CVE-2023-28362 being exploited?
There is no known exploitation of CVE-2023-28362 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2023-28362, GHSA-4g8v-vg43-wpgf, OESA-2024-2465, SUSE-SU-2023:3229-1, SUSE-SU-2023:3255-1, UBUNTU-CVE-2023-28362.