CVE-2022-27664: Golang.org/x/net Denial of Service Vulnerability
HIGHCVE-2022-27664 is a HIGH (CVSS 7.5) denial of service vulnerability (General Security Weakness) affecting Golang.org/x/net libraries in the Go ecosystem. The issue involves golang.org/x/net/http2 denial of service vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20220906165146-f3363e06e74c.
CVE-2022-27664 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-2022-27664
To remediate this vulnerability, upgrade all affected Golang.org/x/net 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 to 0.0.0-20220906165146-f3363e06e74c
Upgrade golang.org/x/net/http2 to 0.0.0-20220906165146-f3363e06e74c
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
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-27664, inspect your project dependencies for Golang.org/x/net:
inspect dependencies for golang.org/x/net
Analyze the terminal output to locate any version of Golang.org/x/net 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-20220906165146-f3363e06e74c), 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 General Security Weakness. In Golang.org/x/net, 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-2022-27664 Affected Golang.org/x/net Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
golang.org/x/net
|
Go |
< 0.0.0-20220906165146-f3363e06e74c
|
0.0.0-20220906165146-f3363e06e74c
|
|
golang.org/x/net/http2
|
Go |
< 0.0.0-20220906165146-f3363e06e74c
|
0.0.0-20220906165146-f3363e06e74c
|
References
Frequently Asked Questions
What is CVE-2022-27664?
Which Golang.org/x/net versions are affected?
What version fixes CVE-2022-27664?
Is golang.org/x/net affected?
Is golang.org/x/net/http2 affected?
What is the CVSS score of CVE-2022-27664?
What CWE is associated with CVE-2022-27664?
How can I check Go dependencies for CVE-2022-27664?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-69cg-p879-7622",
"modified" : "2024-05-20T21:33:38Z",
"published" : "2022-09-07T00:01:51Z",
"aliases" : [ "CVE-2022-27664" ],
"summary" : "golang.org/x/net/http2 Denial of Service vulnerability",
"details" : "In net/http in Go before 1.18.6 and 1.19.x before 1.19.1, attackers can cause a denial of service because an HTTP/2 connection can hang during closing if shutdown were preempted by a fatal error.",
"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"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20220906165146-f3363e06e74c"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "golang.org/x/net/http2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20220906165146-f3363e06e74c"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-27664"
}, {
"type" : "PACKAGE",
"url" : "https://cs.opensource.google/go/x/net"
}, {
"type" : "WEB",
"url" : "https://go.dev/cl/428735"
}, {
"type" : "WEB",
"url" : "https://go.dev/issue/54658"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-announce"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-announce/c/x49AQzIVX-s"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JXKTHIGE5F576MAPFYCIJXNRGBSPISUF"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXS2OQ57KZC5XZKK5UW4SYKPVQAHIOJX"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0969"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202209-26"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220923-0004"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-18T00:05:31Z",
"nvd_published_at" : "2022-09-06T18:15:00Z"
}
}