CVE-2023-29406
MEDIUM6.5EPSS 0.34%Insufficient sanitization of Host header in net/http
Published: 7/11/2023Modified: 4/28/2026
Description
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.
Affected packages (4)
- Bitnami/golangfrom 0, < 1.19.11, >= 1.20.0, < 1.20.6
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Go/stdlibfrom 0, < 1.19.11, >= 1.20.0-0, < 1.20.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
References (8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-29406
- PATCHhttps://go.dev/cl/506996
- REPORThttps://go.dev/issue/60374
- WEBhttps://groups.google.com/g/golang-announce/c/2q13H6LEEx0
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-29406
- WEBhttps://pkg.go.dev/vuln/GO-2023-1878
- WEBhttps://security.gentoo.org/glsa/202311-09
- WEBhttps://security.netapp.com/advisory/ntap-20230814-0002/