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

PackageVersions
Go · stdlibintroduced 0, fixed 1.19.11, introduced 1.20.0-0, fixed 1.20.6

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database