Vulnerability · Published Mar 5, 2024 · Assigned by Go

CVE-2023-45289Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http

Medium 4.3

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 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

When following an HTTP redirect to a domain which is not a subdomain match or exact match of the initial domain, an http.Client does not forward sensitive headers such as "Authorization" or "Cookie". For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not. A maliciously crafted HTTP redirect could cause sensitive headers to be unexpectedly forwarded.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.21.2-3.module_el8.10.0+3760+4dd778f9ALSA-2024:3259
AlmaLinux:8git-lfs3.4.1-2.el8_10ALSA-2024:3346
AlmaLinux:9git-lfs3.4.1-2.el9_4ALSA-2024:2724
AlmaLinux:8go-toolset1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9go-toolset1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-bin1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang-bin1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-docs1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang-docs1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-misc1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang-misc1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-src1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang-src1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-tests1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux:9golang-tests1.21.9-2.el9_4ALSA-2024:2562
Alpine:v3.20go1.22.1-r0ALPINE-CVE-2023-45289
Alpine:v3.21go1.22.1-r0ALPINE-CVE-2023-45289
Alpine:v3.22go1.22.1-r0ALPINE-CVE-2023-45289
Alpine:v3.23go1.22.1-r0ALPINE-CVE-2023-45289
Alpine:v3.24go1.22.1-r0ALPINE-CVE-2023-45289
Debian:12golang-1.19no fix listedDEBIAN-CVE-2023-45289
Gostdlib1.21.8, 1.22.1GO-2024-2600
Rocky Linux:8git-lfs0:3.4.1-2.el8_10RLSA-2024:3346
Rocky Linux:9git-lfs0:3.4.1-2.el9_4RLSA-2024:2724
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2023-45289
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2023-45289
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2023-45289
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3UBUNTU-CVE-2023-45289
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3USN-6886-1
Ubuntu:24.04:LTSgolang-1.211.21.9-1ubuntu0.1USN-6886-1
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.1USN-6886-1
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.1USN-6886-1

Affected products (as reported)

VendorProductVersions
Go standard library net/http 0 – before 1.21.81.22.0-0 – before 1.22.1
Go standard library net/http/cookiejar 0 – before 1.21.81.22.0-0 – before 1.22.1

References