CVE-2023-28362
actionpack: Possible XSS via User Supplied Values to redirect_to
Overview
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.
Source: OX vulnerability database
Severity
4 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-116
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | actionpack | <6.1.7.4>=7.0.0, <7.0.5.1 | 6.1.7.47.0.5.1~> 6.1.7.4 |
Open a package to see all its vulnerabilities.
Operating systems · 8 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-actionpack | affected |
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | ruby2-5-rubygem-actionpack-5-1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
| 15.5 | ruby2-5-rubygem-actionpack-5-1 | 5.1.4-150000.3.18.1 | SUSE-SU-2023:3229-1 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | 2:6.0.3.7+dfsg-2+deb11u3 |
| 12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 |
| 13 | rails | 2:7.2.2.1+dfsg-1 |
| 14 | rails | 2:7.2.2.1+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.1.7.10+dfsg-1~deb12u1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-28362
- discuss.rubyonrails.org https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132
- github.com https://github.com/advisories/GHSA-4g8v-vg43-wpgf
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441
- github.com https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5
- github.com https://github.com/rails/rails/commit/c9ab9b32bcdcfd8bcd55907f6c7b20b4e004cc23
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-28362.yml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-28362
- security.netapp.com https://security.netapp.com/advisory/ntap-20250502-0009
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.