CVE-2023-28362

NameCVE-2023-28362
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5881-1
Debian Bugs1051058

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rails (PTS)bullseye (security), bullseye2:6.0.3.7+dfsg-2+deb11u2vulnerable
bookworm2:6.1.7.3+dfsg-2~deb12u1vulnerable
bookworm (security)2:6.1.7.10+dfsg-1~deb12u1fixed
sid, trixie2:7.2.2.1+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
railssourcebookworm2:6.1.7.10+dfsg-1~deb12u1DSA-5881-1
railssource(unstable)2:7.2.2.1+dfsg-11051058

Notes

[bullseye] - rails <no-dsa> (Minor issue)
https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132
https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5 (main)
https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441 (v6.1.7.4)

Search for package or bug name: Reporting problems