title: Request smuggling due to improper request handling in golang.org/x/net/http2/h2c
description: A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesHandler, the body of an HTTP request is not fully consumed. When the server attempts to read HTTP2 frames from the connection, it will instead be reading the body of the HTTP request, which could be attacker-manipulated to represent arbitrary HTTP2 requests.
problem types: CWE 444: Inconsistent Interpretation of HTTP Requests ("HTTP Request/Response Smuggling)
affected:
{
vendor: golang.org/x/net
product: golang.org/x/net/http2/h2c
collectionURL: https://pkg.go.dev
packageName: golang.org/x/net/http2/h2c
versions:
version: 0.0.0-20220524220425-1d687d428aca, lessThan: 0.1.1-0.20221104162952-702349b0e862, status: affected, versionType: semver
programRoutines:
name: h2cHandler.ServeHTTP
name: h2cUpgrade
defaultStatus: unaffected
}