GO-2023-1878
Insufficient sanitization of Host header in net/http
At a glance
- Published
- Updated
- CVE
- CVE-2023-29406
- Aliases
- BIT-golang-2023-29406
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
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.19.11, introduced 1.20.0-0, fixed 1.20.6 |
References
- https://go.dev/issue/60374 REPORT
- https://go.dev/cl/506996 FIX
- https://groups.google.com/g/golang-announce/c/2q13H6LEEx0 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |