CVE-2023-28362 Details
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.
A vulnerability exists in the Ruby on Rails Actionpack component, specifically in versions prior to 6.1.7.4 and in the 7.0.0 series prior to 7.0.5.1. The issue arises in the 'redirect_to' method, which improperly allows user-supplied values to include characters that are not valid in an HTTP header. This could lead to downstream services that require RFC compliance to remove the 'Location' header, creating a potential cross-site scripting (XSS) risk. Exploitation would involve redirecting to a malicious URL that could execute a script, but this requires user interaction and specific Rails configuration to allow external redirects.
Users can update to Actionpack versions 6.1.7.4 or 7.0.5.1, where this vulnerability has been fixed. NetApp products affected by this vulnerability should consult the NetApp advisory NTAP-20250502-0009 for guidance.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 9, 2025CISA-ADP
Assessed Jan 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20250502-0009/ | CVE | AdvisoryRemedy |
| https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132 | [email protected] | Mailing ListTechnical DescriptionVendor |
| https://github.com/advisories/GHSA-4g8v-vg43-wpgf | [email protected] | AdvisoryRemedy |
| https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441 | [email protected] | Source CodeVendor |
| https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5 | [email protected] | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Ruby on Rails | < 6.1.7.4 >= 7.0.0, < 7.0.5.1 |
CPE
Remediation
| |
| NetApp | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 2, 2025 | CVE Modified | CVE |
| Jan 9, 2025 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | New CVE Received | [email protected] |
Volerion