CVE-2022-41723: Golang.org/x/net Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-vvpx-j8f3-3w6h
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-41723
GHSA Identifier GHSA-vvpx-j8f3-3w6h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Golang.org/x/net
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

golang.org/x/net fixed: 0.7.0
Upgrade golang.org/x/net to 0.7.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2022-41723 Affected Golang.org/x/net Versions

1 component(s)
Fixed Versions:
0.7.0
Product / Package Ecosystem Affected Versions Fixed Version
golang.org/x/net
Go
< 0.7.0
0.7.0

References

NVD — CVE-2022-41723 NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-41723
go.dev/cl/468135 WEB
https://go.dev/cl/468135
go.dev/cl/468295 WEB
https://go.dev/cl/468295
go.dev/issue/57855 WEB
https://go.dev/issue/57855
groups.google.com/g/golang-announce/c... WEB
https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BUK2ZIAGCULOOYDNH25JPU6JBES5NF2
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MA5XS5DAOJ5PKKNG5TUXKPQOFHT5VBC
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/REMHVVIBDNKSRKNOTV7EQSB7CYQWOUOU
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RGW7GE2Z32ZT47UFAQFDRQE33B7Q7LMT
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RLBQ3A7ROLEQXQLXFDLNJ7MYPKG5GULE
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T7N5GV4CHH6WAGX3GFMDD3COEOVCZ4RI
pkg.go.dev/vuln/go-2023-1571 WEB
https://pkg.go.dev/vuln/GO-2023-1571
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XX3IMUTZKRQ73PBZM4E2JP4BKYH4C6XE
Golang.org/x/net Security Information SECURITY
https://security.gentoo.org/glsa/202311-09
vuln.go.dev/id/go-2023-1571.jso... WEB
https://vuln.go.dev/ID/GO-2023-1571.json
www.couchbase.com/alerts WEB
https://www.couchbase.com/alerts

Frequently Asked Questions

What is CVE-2022-41723?
CVE-2022-41723 is a security vulnerability in Golang.org/x/net involving golang.org/x/net vulnerable to Uncontrolled Resource Consumption under CWE-400: Uncontrolled Resource Consumption.
Which Golang.org/x/net versions are affected?
Affected versions include releases prior to 0.7.0 across affected packages: golang.org/x/net.
What version fixes CVE-2022-41723?
Upgrading to 0.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is golang.org/x/net affected?
Yes, golang.org/x/net is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
What is the CVSS score of CVE-2022-41723?
CVE-2022-41723 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-41723?
CVE-2022-41723 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2022-41723?
Run the dependency tree command: 'inspect dependencies for golang.org/x/net'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}