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
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.17.12, introduced 1.18.0-0, fixed 1.18.4 |
References
- https://go.dev/cl/409874 FIX
- https://go.googlesource.com/go/+/e5017a93fcde94f09836200bca55324af037ee5f FIX
- https://go.dev/issue/53188 REPORT
- https://go.dev/cl/410714 FIX
- https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |