Vulnerability · Published Jan 9, 2025 · Assigned by hackerone
CVE-2023-28362
Medium 4.0
In plain English
A medium-severity security flaw in Action Pack from Rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.3%top 73.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DSA-5881-1 |
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DEBIAN-CVE-2023-28362 |
| Debian:13 | rails | 2:7.2.2.1+dfsg-1 | DEBIAN-CVE-2023-28362 |
| Debian:14 | rails | 2:7.2.2.1+dfsg-1 | DEBIAN-CVE-2023-28362 |
| RubyGems | actionpack | 6.1.7.4 | GHSA-4g8v-vg43-wpgf |
| RubyGems | actionpack | 7.0.5.1 | GHSA-4g8v-vg43-wpgf |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-28362 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2023-28362 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-28362 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2023-28362 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Rails | Action Pack | 7.0.5.1 – before 7.0.5.16.1.7.4 – before 6.1.7.4 |
Weakness: CWE-116 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132
- https://github.com/advisories/GHSA-4g8v-vg43-wpgf
- https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441
- https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5
- https://security.netapp.com/advisory/ntap-20250502-0009/