GO-2022-1144

Source
https://pkg.go.dev/vuln/GO-2022-1144
Import Source
https://vuln.go.dev/ID/GO-2022-1144.json
Aliases
Published
2022-12-08T19:01:21Z
Modified
2023-12-06T01:02:36.978630Z
Summary
Excessive memory growth in net/http and golang.org/x/net/http2
Details

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.

References

Affected packages

Go / stdlib

Package

Name
stdlib

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.18.9
Introduced
1.19.0-0
Fixed
1.19.4

Ecosystem specific

{
    "imports": [
        {
            "path": "net/http",
            "symbols": [
                "ListenAndServe",
                "ListenAndServeTLS",
                "Serve",
                "ServeTLS",
                "Server.ListenAndServe",
                "Server.ListenAndServeTLS",
                "Server.Serve",
                "Server.ServeTLS",
                "http2Server.ServeConn",
                "http2serverConn.canonicalHeader"
            ]
        }
    ]
}

Go / golang.org/x/net

Package

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
0.4.0

Ecosystem specific

{
    "imports": [
        {
            "path": "golang.org/x/net/http2",
            "symbols": [
                "Server.ServeConn",
                "serverConn.canonicalHeader"
            ]
        }
    ]
}