CVE-2023-29406
MEDIUM 6.5CVSS 3.1Insufficient sanitization of Host header in net/http
The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests. With fix, the HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value.
- Published
- 11 Jul 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-436
- Also known as
- BIT-golang-2023-29406GO-2023-1878
- Sources
- NVDJSONOSV GO-2023-1878JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.19.11 | 1.19.11 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.20.0, < 1.20.6 | 1.20.6 |
| OSV | Go | stdlib | < 1.19.11; >= 1.20.0-0, < 1.20.6 | 1.19.11, 1.20.6 |
References
- https://go.dev/cl/506996 · Patch, FIX
- https://go.dev/issue/60374 · Issue Tracking, Patch, REPORT
- https://groups.google.com/g/golang-announce/c/2q13H6LEEx0 · Mailing List, WEB
- https://pkg.go.dev/vuln/GO-2023-1878 · Vendor Advisory
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20230814-0002/
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 11 Jul 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Jul 2023)