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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | delve | 1.21.2-3.module_el8.10.0+3760+4dd778f9 | ALSA-2024:3259 |
| AlmaLinux:8 | git-lfs | 3.4.1-2.el8_10 | ALSA-2024:3346 |
| AlmaLinux:9 | git-lfs | 3.4.1-2.el9_4 | ALSA-2024:2724 |
| AlmaLinux:8 | go-toolset | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | go-toolset | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang-bin | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang-bin | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang-docs | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang-docs | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang-misc | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang-misc | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang-src | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang-src | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux:8 | golang-tests | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux:9 | golang-tests | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| Alpine:v3.20 | go | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine:v3.21 | go | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine:v3.22 | go | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine:v3.23 | go | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine:v3.24 | go | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2023-45289 |
| Go | stdlib | 1.21.8, 1.22.1 | GO-2024-2600 |
| Rocky Linux:8 | git-lfs | 0:3.4.1-2.el8_10 | RLSA-2024:3346 |
| Rocky Linux:9 | git-lfs | 0:3.4.1-2.el9_4 | RLSA-2024:2724 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2023-45289 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2023-45289 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2023-45289 |
| Ubuntu:22.04:LTS | golang-1.21 | 1.21.1-1~ubuntu22.04.3 | UBUNTU-CVE-2023-45289 |
| Ubuntu:22.04:LTS | golang-1.21 | 1.21.1-1~ubuntu22.04.3 | USN-6886-1 |
| Ubuntu:24.04:LTS | golang-1.21 | 1.21.9-1ubuntu0.1 | USN-6886-1 |
| Ubuntu:22.04:LTS | golang-1.22 | 1.22.2-2~22.04.1 | USN-6886-1 |
| Ubuntu:24.04:LTS | golang-1.22 | 1.22.2-2ubuntu0.1 | USN-6886-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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 |