What’s Vulnerable › Vulnerabilities

CVE-2023-29406: 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.

Affected products

How to fix

Upgrade to a fixed version: Go 1.19.11, 1.20.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-29406 or the next vulnerability affects your stack