GO-2022-1144

Source
https://pkg.go.dev/vuln/GO-2022-1144
Import Source
https://vuln.go.dev/ID/GO-2022-1144.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-1144
Aliases
Related
Published
2022-12-08T19:01:21Z
Modified
2024-05-20T16:03:47Z
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
Credits
    • Josselin Costanzi

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
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

Name
golang.org/x/net
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/net

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.0

Ecosystem specific

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