GO-2023-1495

Source
https://pkg.go.dev/vuln/GO-2023-1495
Import Source
https://vuln.go.dev/ID/GO-2023-1495.json
Aliases
Published
2023-01-13T22:39:40Z
Modified
2023-11-08T04:10:32.358141Z
Details

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.

References

Affected packages

Go / golang.org/x/net

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-20220524220425-1d687d428aca
Fixed
0.1.1-0.20221104162952-702349b0e862

Ecosystem specific

{
    "imports": [
        {
            "path": "golang.org/x/net/http2/h2c",
            "symbols": [
                "h2cHandler.ServeHTTP",
                "h2cUpgrade"
            ]
        }
    ]
}