Vulnerability · Published Jan 28, 2025 · Assigned by Go
CVE-2024-45336Sensitive headers incorrectly sent after cross-domain redirect in net/http
Medium 6.1
In plain English
A medium-severity security flaw in net/http from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | delve | 1.24.1-1.el10_0 | ALSA-2025:7466 |
| AlmaLinux:8 | delve | 1.24.1-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | go-toolset | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | go-toolset | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang-bin | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang-bin | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang-docs | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang-docs | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang-misc | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang-misc | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang-src | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang-src | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:10 | golang-tests | 1.23.7-1.el10_0.alma.1 | ALSA-2025:7466 |
| AlmaLinux:8 | golang-tests | 1.23.6-1.module_el8.10.0+3977+66935a26 | ALSA-2025:3772 |
| AlmaLinux:8 | osbuild-composer | 101.5-2.el8_10.alma.1 | ALSA-2026:66016 |
| AlmaLinux:8 | osbuild-composer-core | 101.5-2.el8_10.alma.1 | ALSA-2026:66016 |
| AlmaLinux:8 | osbuild-composer-worker | 101.5-2.el8_10.alma.1 | ALSA-2026:66016 |
| AlmaLinux:10 | yggdrasil | 0.4.5-3.el10_0 | ALSA-2025:7592 |
| AlmaLinux:10 | yggdrasil-devel | 0.4.5-3.el10_0 | ALSA-2025:7592 |
| Alpine:v3.21 | go | 1.23.5-r0 | ALPINE-CVE-2024-45336 |
| Alpine:v3.22 | go | 1.23.5-r0 | ALPINE-CVE-2024-45336 |
| Alpine:v3.23 | go | 1.23.5-r0 | ALPINE-CVE-2024-45336 |
| Alpine:v3.24 | go | 1.23.5-r0 | ALPINE-CVE-2024-45336 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2024-45336 |
| Debian:13 | golang-1.24 | 1.24~rc2-1 | DEBIAN-CVE-2024-45336 |
| Go | stdlib | 1.22.11, 1.23.5, 1.24.0-rc.2 | GO-2025-3420 |
| Rocky Linux:10 | delve | 0:1.24.1-1.el10_0 | RLSA-2025:7466 |
| Rocky Linux:8 | delve | 0:1.24.1-1.module+el8.10.0+1987+42f155bb | RLSA-2025:3772 |
| Rocky Linux:8 | delve | 0:1.24.1-1.module+el8.10.0+1951+c74bd827 | RLSA-2025:3772 |
| Rocky Linux:9 | delve | 0:1.24.1-2.el9_6 | RLSA-2025:3773 |
| Rocky Linux:8 | go-toolset | 0:1.23.6-1.module+el8.10.0+1951+c74bd827 | RLSA-2025:3772 |
| Rocky Linux:10 | golang | 0:1.23.7-1.el10_0 | RLSA-2025:7466 |
| Rocky Linux:8 | golang | 0:1.23.6-1.module+el8.10.0+1951+c74bd827 | RLSA-2025:3772 |
| Rocky Linux:9 | golang | 0:1.23.6-2.el9_6 | RLSA-2025:3773 |
| Rocky Linux:8 | osbuild-composer | 0:101.5-2.el8_10.rocky.0.6 | RLSA-2026:66016 |
| Rocky Linux:10 | yggdrasil | 0:0.4.5-3.el10_0 | RLSA-2025:7592 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.22 | 1.22.2-2~22.04.3 | USN-7574-1 |
| Ubuntu:22.04:LTS | golang-1.22 | 1.22.2-2~22.04.3 | UBUNTU-CVE-2024-45336 |
| Ubuntu:24.04:LTS | golang-1.22 | 1.22.2-2ubuntu0.4 | USN-7574-1 |
| Ubuntu:24.04:LTS | golang-1.22 | 1.22.2-2ubuntu0.4 | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2024-45336 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2024-45336 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | net/http | 0 – before 1.22.111.23.0-0 – before 1.23.51.24.0-0 – before 1.24.0-rc.2 |