GO-2022-0525

Improper sanitization of Transfer-Encoding headers in net/http

At a glance

Published
Updated
CVE
CVE-2022-1705
Aliases
BIT-golang-2022-1705

Description

The HTTP/1 client accepted some invalid Transfer-Encoding headers as indicating a "chunked" encoding. This could potentially allow for request smuggling, but only if combined with an intermediate server that also improperly failed to reject the header as invalid.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.17.12, introduced 1.18.0-0, fixed 1.18.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database