Skip to main content

CVE-2022-41717 — Vulnerability in golang.org/x/net — CVE Details

MEDIUM

golang.org/x/net/http2 vulnerable to possible excessive memory growth

Published December 8, 2022Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (5.52%). Schedule for your next planned update.

Does your project use an affected golang.org/x/net version?

Paste your go.sum to check it for CVE-2022-41717 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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.

Advisory Timeline

  • First published December 8, 2022 (1449 days ago).
  • Last revised September 10, 2026 — 1371 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update golang.org/x/net to 0.4.0 or later
go get golang.org/x/net@v0.4.0
Go
Update golang.org/x/net/http2 to 0.4.0 or later
go get golang.org/x/net/http2@v0.4.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Go (2).

PackageFixed In
golang.org/x/net Go · Affected: All versions0.4.0
golang.org/x/net/http2 Go · Affected: All versions0.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References

Frequently Asked Questions

What is CVE-2022-41717?
golang.org/x/net/http2 vulnerable to possible excessive memory growth. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2022-41717?
CVE-2022-41717 affects golang.org/x/net and golang.org/x/net/http2. It has a 5.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-41717 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
5.52%
EPSS percentile: 93.6

This places it in the top 10% of EPSS-scored vulnerabilities — 93.6% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.

Also Known As

GHSA-xrjj-mj9h-534m
BIT-golang-2022-41717
GO-2022-1144

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum