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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.7%top 46.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:10delve1.24.1-1.el10_0ALSA-2025:7466
AlmaLinux:8delve1.24.1-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10go-toolset1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8go-toolset1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang-bin1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang-bin1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang-docs1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang-docs1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang-misc1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang-misc1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang-src1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang-src1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:10golang-tests1.23.7-1.el10_0.alma.1ALSA-2025:7466
AlmaLinux:8golang-tests1.23.6-1.module_el8.10.0+3977+66935a26ALSA-2025:3772
AlmaLinux:8osbuild-composer101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:8osbuild-composer-core101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:8osbuild-composer-worker101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:10yggdrasil0.4.5-3.el10_0ALSA-2025:7592
AlmaLinux:10yggdrasil-devel0.4.5-3.el10_0ALSA-2025:7592
Alpine:v3.21go1.23.5-r0ALPINE-CVE-2024-45336
Alpine:v3.22go1.23.5-r0ALPINE-CVE-2024-45336
Alpine:v3.23go1.23.5-r0ALPINE-CVE-2024-45336
Alpine:v3.24go1.23.5-r0ALPINE-CVE-2024-45336
Debian:12golang-1.19no fix listedDEBIAN-CVE-2024-45336
Debian:13golang-1.241.24~rc2-1DEBIAN-CVE-2024-45336
Gostdlib1.22.11, 1.23.5, 1.24.0-rc.2GO-2025-3420
Rocky Linux:10delve0:1.24.1-1.el10_0RLSA-2025:7466
Rocky Linux:8delve0:1.24.1-1.module+el8.10.0+1987+42f155bbRLSA-2025:3772
Rocky Linux:8delve0:1.24.1-1.module+el8.10.0+1951+c74bd827RLSA-2025:3772
Rocky Linux:9delve0:1.24.1-2.el9_6RLSA-2025:3773
Rocky Linux:8go-toolset0:1.23.6-1.module+el8.10.0+1951+c74bd827RLSA-2025:3772
Rocky Linux:10golang0:1.23.7-1.el10_0RLSA-2025:7466
Rocky Linux:8golang0:1.23.6-1.module+el8.10.0+1951+c74bd827RLSA-2025:3772
Rocky Linux:9golang0:1.23.6-2.el9_6RLSA-2025:3773
Rocky Linux:8osbuild-composer0:101.5-2.el8_10.rocky.0.6RLSA-2026:66016
Rocky Linux:10yggdrasil0:0.4.5-3.el10_0RLSA-2025:7592
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-45336
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.3USN-7574-1
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.3UBUNTU-CVE-2024-45336
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.4USN-7574-1
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.4UBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2024-45336
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2024-45336
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-45336
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-45336
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2024-45336
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-45336

Affected products (as reported)

VendorProductVersions
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

References