{"id":"CVE-2023-29406","state":"PUBLISHED","title":"Insufficient sanitization of Host header in net/http","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.","publishedAt":"2023-07-11T19:23:58.511Z","updatedAt":"2025-02-13T16:49:14.579Z","severity":null,"assigner":"Go","products":["Go standard library net/http"],"affected":[{"vendor":"Go standard library","product":"net/http","packageName":"net/http","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.11","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.6","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Request.write"},{"name":"Client.CloseIdleConnections"},{"name":"Client.Do"},{"name":"Client.Get"},{"name":"Client.Head"},{"name":"Client.Post"},{"name":"Client.PostForm"},{"name":"Get"},{"name":"Head"},{"name":"Post"},{"name":"PostForm"},{"name":"Request.Write"},{"name":"Request.WriteProxy"},{"name":"Transport.CancelRequest"},{"name":"Transport.CloseIdleConnections"},{"name":"Transport.RoundTrip"}]}],"references":["https://go.dev/issue/60374","https://go.dev/cl/506996","https://groups.google.com/g/golang-announce/c/2q13H6LEEx0","https://pkg.go.dev/vuln/GO-2023-1878","https://security.netapp.com/advisory/ntap-20230814-0002/","https://security.gentoo.org/glsa/202311-09"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:52.290Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/29xxx/CVE-2023-29406.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-29406","state":"PUBLISHED","datePublished":"2023-07-11T19:23:58.511Z","dateUpdated":"2025-02-13T16:49:14.579Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2023-04-05T19:36:35.043Z"},"containers":{"cna":{"title":"Insufficient sanitization of Host header in net/http","descriptions":[{"lang":"en","value":"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":[{"vendor":"Go standard library","product":"net/http","packageName":"net/http","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.11","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.6","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Request.write"},{"name":"Client.CloseIdleConnections"},{"name":"Client.Do"},{"name":"Client.Get"},{"name":"Client.Head"},{"name":"Client.Post"},{"name":"Client.PostForm"},{"name":"Get"},{"name":"Head"},{"name":"Post"},{"name":"PostForm"},{"name":"Request.Write"},{"name":"Request.WriteProxy"},{"name":"Transport.CancelRequest"},{"name":"Transport.CloseIdleConnections"},{"name":"Transport.RoundTrip"}]}],"references":[{"url":"https://go.dev/issue/60374"},{"url":"https://go.dev/cl/506996"},{"url":"https://groups.google.com/g/golang-announce/c/2q13H6LEEx0"},{"url":"https://pkg.go.dev/vuln/GO-2023-1878"},{"url":"https://security.netapp.com/advisory/ntap-20230814-0002/"},{"url":"https://security.gentoo.org/glsa/202311-09"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-11-25T11:09:28.969Z"},"credits":[{"lang":"en","value":"Bartek Nowotarski"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/issue/60374","tags":["x_transferred"]},{"url":"https://go.dev/cl/506996","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/2q13H6LEEx0","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1878","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230814-0002/","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202311-09","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T14:07:45.735Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-07T15:39:42.813114Z","id":"CVE-2023-29406","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-07T15:39:53.007Z"}}]}}}