CVE-2023-29406
6.5medium
Insufficient sanitization of Host header in net/http
- Severity
- 6.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.45% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2023-1878BIT-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
| Product or package | Versions | Reported by |
|---|---|---|
| net/http | before 1.19.11, from 1.20.0-0 before 1.20.6 | CVE List |
| stdlib (Go) | before 1.19.11, from 1.20.0-0 before 1.20.6 | Go Vulnerability Database |
| golang go | before 1.19.11, from 1.20.0 before 1.20.6 | NVD |
| golang (Bitnami) | before 1.19.11, from 1.20.0 before 1.20.6 | Bitnami Vulnerability Database |
All scores
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
References
| https://go.dev/issue/60374 | fix, issue-tracking, patch, report | |
| https://go.dev/cl/506996 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/2q13H6LEEx0 | discussion, mailing-list, web | |
| https://pkg.go.dev/vuln/GO-2023-1878 | advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20230814-0002/ | web | |
| https://security.gentoo.org/glsa/202311-09 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-29406 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-29406 changed 2025-02-13 | CVE Terms of Use |
| Go Vulnerability Database | GO-2023-1878 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-29406 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2023-29406 changed 2026-09-08 | Apache-2.0 |