CVE-2025-22869: Golang.org/x/crypto Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-hcg3-q754-cr77
CVSS 7.5
CWE-770
Published
Advisory Summary

CVE-2025-22869 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Golang.org/x/crypto libraries in the Go ecosystem. The issue involves golang.org/x/crypto vulnerable to denial of service (dos) via slow or incomplete key exchange. Remediation is available by upgrading affected packages to version 0.35.0.

CVE-2025-22869 at a Glance

CVE Identifier CVE-2025-22869
GHSA Identifier GHSA-hcg3-q754-cr77
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Golang.org/x/crypto
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-2025-22869

To remediate this vulnerability, upgrade all affected Golang.org/x/crypto 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/crypto fixed: 0.35.0
Upgrade golang.org/x/crypto to 0.35.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/crypto

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-22869, inspect your project dependencies for Golang.org/x/crypto:

inspect dependencies for golang.org/x/crypto

Analyze the terminal output to locate any version of Golang.org/x/crypto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.35.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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Golang.org/x/crypto, 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

SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.

CVE-2025-22869 Affected Golang.org/x/crypto Versions

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

References

Frequently Asked Questions

What is CVE-2025-22869?
CVE-2025-22869 is a security vulnerability in Golang.org/x/crypto involving golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Golang.org/x/crypto versions are affected?
Affected versions include releases prior to 0.35.0 across affected packages: golang.org/x/crypto.
What version fixes CVE-2025-22869?
Upgrading to 0.35.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is golang.org/x/crypto affected?
Yes, golang.org/x/crypto is affected in releases prior to 0.35.0. Upgrade your dependency to 0.35.0 or later.
What is the CVSS score of CVE-2025-22869?
CVE-2025-22869 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-2025-22869?
CVE-2025-22869 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2025-22869?
Run the dependency tree command: 'inspect dependencies for golang.org/x/crypto'. 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-hcg3-q754-cr77",
  "modified" : "2025-04-14T15:38:58Z",
  "published" : "2025-04-12T00:30:26Z",
  "aliases" : [ "CVE-2025-22869" ],
  "summary" : "golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange",
  "details" : "SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.",
  "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/crypto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.35.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-22869"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/golang/crypto/commit/7292932d45d55c7199324ab0027cc86e8198aa22"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/golang/crypto"
  }, {
    "type" : "WEB",
    "url" : "https://go-review.googlesource.com/c/crypto/+/652135"
  }, {
    "type" : "WEB",
    "url" : "https://go.dev/cl/652135"
  }, {
    "type" : "WEB",
    "url" : "https://go.dev/issue/71931"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3487"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20250411-0010"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-14T15:38:58Z",
    "nvd_published_at" : "2025-02-26T08:14:24Z"
  }
}