CVEfocus › CVE database › CVE-2023-45289

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

CVSS 4.3 MediumEPSS 1.1% (higher than 67% of CVEs)Published 2024-03-05Updated 2025-02-13Assigner: Go

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

49Fixed
34Fix pending
3Under investigation
8Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2023-45289
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2023-45289
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2023-45289
Ubuntu 22.04golang-1.21Fixed1.21.1-1~ubuntu22.04.3UBUNTU-CVE-2023-45289
Ubuntu 22.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.21Fixed1.21.1-1~ubuntu20.04.3UBUNTU-CVE-2023-45289
Ubuntu 20.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2023-45289
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2023-45289
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2023-45289
Red Hat Enterprise Linux 9git-lfsFixed0:3.4.1-2.el9_4RHSA-2024:2724
Red Hat Enterprise Linux 9go-toolsetFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golangFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golang-binFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golang-docsFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golang-miscFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golang-srcFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9golang-testsFixed0:1.21.9-2.el9_4RHSA-2024:2562
Red Hat Enterprise Linux 9grafanaFix pending
Affected
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Affected
Red Hat Enterprise Linux 9osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 8delveFixed0:1.21.2-3.module+el8.10.0+21244+5b2d9000RHSA-2024:3259
Red Hat Enterprise Linux 8git-lfsFixed0:3.4.1-2.el8_10RHSA-2024:3346
Red Hat Enterprise Linux 8go-toolsetFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golangFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golang-binFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golang-docsFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golang-miscFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golang-srcFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8golang-testsFixed0:1.21.9-1.module+el8.10.0+21671+b35c3b78RHSA-2024:3259
Red Hat Enterprise Linux 8grafanaFix pending
Affected
Red Hat Enterprise Linux 8grafana-azure-monitorFix pending
Affected
Red Hat Enterprise Linux 8grafana-cloudwatchFix pending
Affected
Red Hat Enterprise Linux 8grafana-elasticsearchFix pending
Affected
Red Hat Enterprise Linux 8grafana-graphiteFix pending
Affected
Red Hat Enterprise Linux 8grafana-influxdbFix pending
Affected
Red Hat Enterprise Linux 8grafana-lokiFix pending
Affected
Red Hat Enterprise Linux 8grafana-mssqlFix pending
Affected
Red Hat Enterprise Linux 8grafana-mysqlFix pending
Affected
Red Hat Enterprise Linux 8grafana-opentsdbFix pending
Affected
Red Hat Enterprise Linux 8grafana-postgresFix pending
Affected
Red Hat Enterprise Linux 8grafana-prometheusFix pending
Affected
Red Hat Enterprise Linux 8grafana-selinuxFix pending
Affected
Red Hat Enterprise Linux 8grafana-stackdriverFix pending
Affected
Red Hat Enterprise Linux 8osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-workerWill not fix
Will not fix
AlmaLinux 9git-lfsFixed3.4.1-2.el9_4ALSA-2024:2724
AlmaLinux 9go-toolsetFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golangFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golang-binFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golang-docsFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golang-miscFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golang-srcFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 9golang-testsFixed1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux 8delveFixed1.21.2-3.module_el8.10.0+3760+4dd778f9ALSA-2024:3259
AlmaLinux 8git-lfsFixed3.4.1-2.el8_10ALSA-2024:3346
AlmaLinux 8go-toolsetFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golangFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golang-binFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golang-docsFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golang-miscFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golang-srcFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
AlmaLinux 8golang-testsFixed1.21.9-1.module_el8.10.0+3840+edaca3c3ALSA-2024:3259
Rocky Linux 9git-lfsFixed0:3.4.1-2.el9_4RLSA-2024:2724
Rocky Linux 9golangFixed0:1.21.9-2.el9_4RLSA-2024:2562
Rocky Linux 8delveFixed0:1.21.2-3.module+el8.10.0+1814+f68f8a63RLSA-2024:3259
Rocky Linux 8git-lfsFixed0:3.4.1-2.el8_10RLSA-2024:3346
Rocky Linux 8go-toolsetFixed0:1.21.9-1.module+el8.10.0+1814+f68f8a63RLSA-2024:3259
Rocky Linux 8golangFixed0:1.21.9-1.module+el8.10.0+1814+f68f8a63RLSA-2024:3259
Alpine Linux 3.24goFixed1.22.1-r0ALPINE-CVE-2023-45289
Alpine Linux 3.23goFixed1.22.1-r0ALPINE-CVE-2023-45289
Alpine Linux 3.22goFixed1.22.1-r0ALPINE-CVE-2023-45289
Alpine Linux 3.21goFixed1.22.1-r0ALPINE-CVE-2023-45289
Alpine Linux 3.20goFixed1.22.1-r0ALPINE-CVE-2023-45289
Alpine Linux 3.19goFixed1.21.8-r0ALPINE-CVE-2023-45289
Go librarystdlibFixed1.21.8GO-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.

References

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.