CVE-2023-28362 Actionpack has possible cross-site scripting vulnerability via User Supplied Values to redirect_to

Medium 4.0 Published Updated

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.

PackageAffectedFixed in
actionpack RubyGemsAll versions6.1.7.4
actionpack RubyGemsAll versions6.1.7.4
actionpack RubyGemsFrom 7.0.07.0.5.1
actionpack RubyGemsFrom 7.0.07.0.5.1
Linux distribution packages (9)
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP1All versions5.1.4-150000.3.18.1
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP2All versions5.1.4-150000.3.18.1
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP3All versions5.1.4-150000.3.18.1
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP4All versions5.1.4-150000.3.18.1
rubygem-actionpack-5_1 SUSE:Linux Enterprise High Availability Extension 15 SP5All versions5.1.4-150000.3.18.1
rubygem-actionpack-4_2 SUSE:OpenStack Cloud Crowbar 8All versions4.2.9-7.18.1
rubygem-actionpack-4_2 SUSE:OpenStack Cloud Crowbar 9All versions4.2.9-7.18.1
rubygem-actionpack-5_1 openSUSE:Leap 15.4All versions5.1.4-150000.3.18.1
rubygem-actionpack-5_1 openSUSE:Leap 15.5All versions5.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.

Is CVE-2023-28362 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free