Go net/http denial of service in MaxBytesReader header handling
Go standard library net/http
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Go standard library net/http |
| No fix yet |
Original description
For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.
From the CVE record · Go