Live threats

All CVEs / Golang

CVE-2022-41717Golang Go

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
5.5%
probability of exploitation in 30 days · percentile 94
Auth required
No
Published
Dec 8, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/net < 0.4.0 0.4.0 go get golang.org/x/net@v0.4.0
Go golang.org/x/net < 0.4.0 0.4.0 go get golang.org/x/net@v0.4.0
Go golang.org/x/net/http2 < 0.4.0 0.4.0 go get golang.org/x/net/http2@v0.4.0
Go stdlib < 1.18.9 1.18.9 go get stdlib@v1.18.9
Go stdlib ≥ 1.19.0-0 < 1.19.4 1.19.4 go get stdlib@v1.19.4

Per OSV / GitHub Advisories (GHSA-xrjj-mj9h-534m, GO-2022-1144). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.18.9
golanggo≥ 1.19.0 < 1.19.4
golanghttp2< 0.4.0
fedoraprojectfedora37
fedoraprojectfedora38

Official advisories

Also: Red Hat (+3)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.