Skip to content
OpenAdvisories
Medium · 4.0 CVE-2023-28362 EUVD-2023-1687GHSA-4g8v-vg43-wpgf

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

Published Jan 9, 2025 · Updated May 2, 2025 · Assigned by hackerone

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References