GO-2022-1144
Excessive memory growth in net/http and golang.org/x/net/http2
At a glance
- Published
- Updated
- CVE
- CVE-2022-41717
- Aliases
- BIT-golang-2022-41717, GHSA-xrjj-mj9h-534m
Description
An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.
Affected packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.18.9, introduced 1.19.0-0, fixed 1.19.4 |
| Go · golang.org/x/net | introduced 0, fixed 0.4.0 |
References
- https://go.dev/issue/56350 REPORT
- https://go.dev/cl/455717 FIX
- https://go.dev/cl/455635 FIX
- https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |