CVE-2021-44716: Golang.org/x/net/http2 Golang.org/x/net/http2 Allows Uncontrolled Memory Consumption Vulnerability
HIGHCVE-2021-44716 is a HIGH (CVSS 7.5) golang.org/x/net/http2 allows uncontrolled memory consumption vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Golang.org/x/net/http2 libraries in the Go ecosystem. The issue involves golang.org/x/net/http2 allows uncontrolled memory consumption. Remediation is available by upgrading affected packages to version 0.0.0-20211209124913-491a49abca63.
CVE-2021-44716 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2021-44716
To remediate this vulnerability, upgrade all affected Golang.org/x/net/http2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade golang.org/x/net/http2 to 0.0.0-20211209124913-491a49abca63
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for golang.org/x/net/http2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-44716, inspect your project dependencies for Golang.org/x/net/http2:
inspect dependencies for golang.org/x/net/http2
Analyze the terminal output to locate any version of Golang.org/x/net/http2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20211209124913-491a49abca63), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Golang.org/x/net/http2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-44716 Affected Golang.org/x/net/http2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
golang.org/x/net/http2
|
Go |
< 0.0.0-20211209124913-491a49abca63
|
0.0.0-20211209124913-491a49abca63
|
References
Frequently Asked Questions
What is CVE-2021-44716?
Which Golang.org/x/net/http2 versions are affected?
What version fixes CVE-2021-44716?
Is golang.org/x/net/http2 affected?
What is the CVSS score of CVE-2021-44716?
What CWE is associated with CVE-2021-44716?
How can I check Go dependencies for CVE-2021-44716?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vc3p-29h2-gpcp",
"modified" : "2023-02-08T00:37:41Z",
"published" : "2022-01-02T00:00:48Z",
"aliases" : [ "CVE-2021-44716" ],
"summary" : "golang.org/x/net/http2 allows uncontrolled memory consumption",
"details" : "net/http in Go before 1.16.12 and 1.17.x before 1.17.5 allows uncontrolled memory consumption in the header canonicalization cache via HTTP/2 requests.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "golang.org/x/net/http2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20211209124913-491a49abca63"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-44716"
}, {
"type" : "WEB",
"url" : "https://go.dev/cl/369794"
}, {
"type" : "WEB",
"url" : "https://go.dev/issue/50058"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-announce/c/hcmEScgc00k"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/01/msg00016.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/01/msg00017.html"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0288"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202208-02"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220121-0002"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-08T00:37:41Z",
"nvd_published_at" : "2022-01-01T05:15:00Z"
}
}