GO-2023-1878

Insufficient sanitization of Host header in net/http

En bref

Publiée
Mise à jour
CVE
CVE-2023-29406
Alias
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.

Paquets affectés

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

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database