CVE-2021-44716: Unbounded memory growth in net/http and golang.org/x/net/http2

stdlib Updated 02 Oct 2025

Summary

15/07/2022
Yes i
Unrated
Not published

CVE-2021-44716: Unbounded memory growth in net/http and golang.org/x/net/http2. Affects stdlib across 2 version ranges.

< 1.16.12 >= 1.17.0-0, < 1.17.5

Fixed in 1.16.12 or 1.17.5, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-44716 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The impacted packages are 'stdlib' and 'golang.org/x/net' in the Go ecosystem. The 'stdlib' package is the standard library for the Go programming language, providing fundamental functionality for various tasks. The 'golang.org/x/net' package is an extension to the standard library, offering additional networking capabilities. Both packages are vulnerable to unbounded memory growth when handling HTTP/2 requests.

Vulnerability Detail

The vulnerability allows an attacker to cause unbounded memory growth in servers that accept HTTP/2 requests. This can lead to memory exhaustion and potentially result in denial-of-service attacks. The issue originates from the 'http2serverConn.canonicalHeader' symbol in the 'net/http' package and the 'Server.ServeConn' and 'serverConn.canonicalHeader' symbols in the 'golang.org/x/net/http2' package.

How To Fix

Latest published version: go1.25.5 as of 22 Oct 2026

go get stdlib@vgo1.25.5

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.16.12 1.16.12
    go get stdlib@v1.16.12
  • >= 1.17.0-0, < 1.17.5 1.17.5
    go get stdlib@v1.17.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the 'stdlib' and 'golang.org/x/net' packages in the Go ecosystem are vulnerable to unbounded memory growth when handling HTTP/2 requests. It is crucial to update to the fixed versions mentioned earlier to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for stdlib →

Share this vulnerability

FAQ

The vulnerability can result in unbounded memory growth, leading to memory exhaustion and potential denial-of-service attacks.

The 'stdlib' package (standard library) and the 'golang.org/x/net' package are both affected.

There are no known exploits available at the moment.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your Gopkg.lock file and it will provide real-time alerts for open-source vulnerabilities.

You can refer to the Open Source Vulnerability database for more details: https://pkg.go.dev/vuln/GO-2022-0288

Related vulnerabilities

Recent vulnerabilities recorded for stdlib.

How To Fix

Latest published version: go1.25.5 as of 22 Oct 2026

go get stdlib@vgo1.25.5

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.16.12 1.16.12
    go get stdlib@v1.16.12
  • >= 1.17.0-0, < 1.17.5 1.17.5
    go get stdlib@v1.17.5

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback