Advisory

GO-2023-1878

Also known as: BIT-golang-2023-29406, CVE-2023-29406

Summary

Insufficient sanitization of Host header in net/http

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-07-11 19:19 UTC
Modified
2026-02-04 04:31 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.19.11, introduced 1.20.0-0, fixed 1.20.6 (semver)

Fixed versions

1.19.11, 1.20.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences