CVE-2022-41723: Golang.org/x/net Remote Code Execution Vulnerability
HIGHCVE-2022-41723 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Golang.org/x/net libraries in the Go ecosystem. The issue involves golang.org/x/net vulnerable to uncontrolled resource consumption. Remediation is available by upgrading affected packages to version 0.7.0.
CVE-2022-41723 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-41723
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.7.0
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-41723, 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.7.0), 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, 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-41723 Affected Golang.org/x/net Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
golang.org/x/net
|
Go |
< 0.7.0
|
0.7.0
|
References
Frequently Asked Questions
What is CVE-2022-41723?
Which Golang.org/x/net versions are affected?
What version fixes CVE-2022-41723?
Is golang.org/x/net affected?
What is the CVSS score of CVE-2022-41723?
What CWE is associated with CVE-2022-41723?
How can I check Go dependencies for CVE-2022-41723?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vvpx-j8f3-3w6h",
"modified" : "2024-05-20T21:46:45Z",
"published" : "2023-02-17T14:00:02Z",
"aliases" : [ "CVE-2022-41723" ],
"summary" : "golang.org/x/net vulnerable to Uncontrolled Resource Consumption",
"details" : "A maliciously crafted HTTP/2 stream could cause excessive CPU consumption in the HPACK decoder, sufficient to cause a denial of service from a small number of small 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"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41723"
}, {
"type" : "WEB",
"url" : "https://go.dev/cl/468135"
}, {
"type" : "WEB",
"url" : "https://go.dev/cl/468295"
}, {
"type" : "WEB",
"url" : "https://go.dev/issue/57855"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BUK2ZIAGCULOOYDNH25JPU6JBES5NF2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MA5XS5DAOJ5PKKNG5TUXKPQOFHT5VBC"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/REMHVVIBDNKSRKNOTV7EQSB7CYQWOUOU"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RGW7GE2Z32ZT47UFAQFDRQE33B7Q7LMT"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RLBQ3A7ROLEQXQLXFDLNJ7MYPKG5GULE"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T7N5GV4CHH6WAGX3GFMDD3COEOVCZ4RI"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XX3IMUTZKRQ73PBZM4E2JP4BKYH4C6XE"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1571"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202311-09"
}, {
"type" : "WEB",
"url" : "https://vuln.go.dev/ID/GO-2023-1571.json"
}, {
"type" : "WEB",
"url" : "https://www.couchbase.com/alerts"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-17T14:00:02Z",
"nvd_published_at" : "2023-02-28T18:15:00Z"
}
}