CVE-2023-45289Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | golang-1.21 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-1.22 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 22.04 | golang-1.17 | Under investigation | UBUNTU-CVE-2023-45289 | |
| Ubuntu 22.04 | golang-1.18 | Under investigation | UBUNTU-CVE-2023-45289 | |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2023-45289 | |
| Ubuntu 22.04 | golang-1.21 | Fixed | 1.21.1-1~ubuntu22.04.3 | UBUNTU-CVE-2023-45289 |
| Ubuntu 22.04 | golang-1.22 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 20.04 | golang-1.21 | Fixed | 1.21.1-1~ubuntu20.04.3 | UBUNTU-CVE-2023-45289 |
| Ubuntu 20.04 | golang-1.22 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2023-45289 | |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2023-45289 | |
| Red Hat Enterprise Linux 9 | git-lfs | Fixed | 0:3.4.1-2.el9_4 | RHSA-2024:2724 |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.21.9-2.el9_4 | RHSA-2024:2562 |
| Red Hat Enterprise Linux 9 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.21.2-3.module+el8.10.0+21244+5b2d9000 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | git-lfs | Fixed | 0:3.4.1-2.el8_10 | RHSA-2024:3346 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.21.9-1.module+el8.10.0+21671+b35c3b78 | RHSA-2024:3259 |
| Red Hat Enterprise Linux 8 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Will not fix Will not fix | ||
| AlmaLinux 9 | git-lfs | Fixed | 3.4.1-2.el9_4 | ALSA-2024:2724 |
| AlmaLinux 9 | go-toolset | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang-bin | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang-docs | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang-misc | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang-src | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 9 | golang-tests | Fixed | 1.21.9-2.el9_4 | ALSA-2024:2562 |
| AlmaLinux 8 | delve | Fixed | 1.21.2-3.module_el8.10.0+3760+4dd778f9 | ALSA-2024:3259 |
| AlmaLinux 8 | git-lfs | Fixed | 3.4.1-2.el8_10 | ALSA-2024:3346 |
| AlmaLinux 8 | go-toolset | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang-bin | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang-docs | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang-misc | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang-src | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| AlmaLinux 8 | golang-tests | Fixed | 1.21.9-1.module_el8.10.0+3840+edaca3c3 | ALSA-2024:3259 |
| Rocky Linux 9 | git-lfs | Fixed | 0:3.4.1-2.el9_4 | RLSA-2024:2724 |
| Rocky Linux 9 | golang | Fixed | 0:1.21.9-2.el9_4 | RLSA-2024:2562 |
| Rocky Linux 8 | delve | Fixed | 0:1.21.2-3.module+el8.10.0+1814+f68f8a63 | RLSA-2024:3259 |
| Rocky Linux 8 | git-lfs | Fixed | 0:3.4.1-2.el8_10 | RLSA-2024:3346 |
| Rocky Linux 8 | go-toolset | Fixed | 0:1.21.9-1.module+el8.10.0+1814+f68f8a63 | RLSA-2024:3259 |
| Rocky Linux 8 | golang | Fixed | 0:1.21.9-1.module+el8.10.0+1814+f68f8a63 | RLSA-2024:3259 |
| Alpine Linux 3.24 | go | Fixed | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine Linux 3.23 | go | Fixed | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine Linux 3.22 | go | Fixed | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine Linux 3.21 | go | Fixed | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine Linux 3.20 | go | Fixed | 1.22.1-r0 | ALPINE-CVE-2023-45289 |
| Alpine Linux 3.19 | go | Fixed | 1.21.8-r0 | ALPINE-CVE-2023-45289 |
| Go library | stdlib | Fixed | 1.21.8 | GO-2024-2600 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go standard library net/http: affected: before 1.21.8, 1.22.0-0 to before 1.22.1; fixed in
1.21.8,1.22.1 - Go standard library net/http/cookiejar: affected: before 1.21.8, 1.22.0-0 to before 1.22.1; fixed in
1.21.8,1.22.1
References
- https://go.dev/issue/65065
- https://go.dev/cl/569340
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
- https://pkg.go.dev/vuln/GO-2024-2600
- https://security.netapp.com/advisory/ntap-20240329-0006/
- http://www.openwall.com/lists/oss-security/2024/03/08/4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.