Skip to main content

CVE-2021-44716 — Unbounded memory growth in golang.org/x/net

Unbounded memory growth in net/http and golang.org/x/net/http2

Published July 15, 2022Updated May 20, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (4.25%). 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-2021-44716 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 unbounded memory growth in servers accepting HTTP/2 requests.

Advisory Timeline

  • First published July 15, 2022 (1595 days ago).
  • Last revised May 20, 2024 — 675 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update golang.org/x/net to 0.0.0-20211209124913-491a49abca63 or later
go get golang.org/x/net@v0.0.0-20211209124913-491a49abca63
Go
Update stdlib to 1.16.12 or later
go get stdlib@v1.16.12

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.0.0-20211209124913-491a49abca63
stdlib Go · Affected: All versions1.16.12, 1.17.5

Frequently Asked Questions

What is CVE-2021-44716?
Unbounded memory growth in net/http and golang.org/x/net/http2. This vulnerability has been assigned a severity rating of Unknown.
How do I check if my project is affected by CVE-2021-44716?
CVE-2021-44716 affects golang.org/x/net and stdlib. It has a 4.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-44716 and 200,000+ other known vulnerabilities.

Severity & Exploitability

EPSS Score (30-day exploit probability)
4.25%
EPSS percentile: 91.8

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

Also Known As

GO-2022-0288
BIT-golang-2021-44716
GHSA-vc3p-29h2-gpcp

Related CVEs

  • CVE-2021-31525

    Panic due to large headers in net/http and golang.org/x/net/http/httpguts

  • CVE-2022-27664

    Denial of service in net/http and golang.org/x/net/http2

  • CVE-2022-41717

    Excessive memory growth in net/http and golang.org/x/net/http2

  • CVE-2022-41723

    Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net

  • CVE-2023-39325

    HTTP/2 rapid reset can cause excessive work in net/http

  • CVE-2023-45288

    HTTP/2 CONTINUATION flood in net/http

  • CVE-2025-22870

    HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net

  • CVE-2026-33814

    Infinite loop in HTTP/2 transport when given bad SETTINGS_MAX_FRAME_SIZE in net/http/internal/http2 in golang.org/x/net

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum