All CVEs / Go standard library
CVE-2024-45336Go standard library net/http
Medium 6.1 No auth needed
Follow: this CVE · Go standard library · Go standard library net/http We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Jan 28, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for net/http.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.22.11 |
1.22.11 |
go get stdlib@v1.22.11 |
| Go | stdlib |
≥ 1.23.0-0 < 1.23.5 |
1.23.5 |
go get stdlib@v1.23.5 |
| Go | stdlib |
≥ 1.24.0-0 < 1.24.0-rc.2 |
1.24.0-rc.2 |
go get stdlib@v1.24.0-rc.2 |
Per OSV / GitHub Advisories (GO-2025-3420). Check the version in your lockfile before upgrading.
Affected products
- Go standard library · net/http
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2026:102902 · Nov 25, 2026 High
- Red Hat Security Advisory: git-lfs security update · Red Hat · RHSA-2026:95234 · Nov 23, 2026 High
- Red Hat Security Advisory: rhc security update · Red Hat · RHSA-2026:92217 · Nov 23, 2026 High
Also: Red Hat (+23)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.