Advisory

GO-2022-1144

Also known as: BIT-golang-2022-41717, CVE-2022-41717, GHSA-xrjj-mj9h-534m

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.

Severity

Not rated by the source.

Dates

Published
2022-12-08 19:01 UTC
Modified
2026-02-04 04:29 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.18.9, introduced 1.19.0-0, fixed 1.19.4 (semver)

Fixed versions

1.18.9, 1.19.4

Fix

The export has no generic command for this ecosystem.

golang.org/x/net

Go · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences