Skip to main content
Go Modules

golang.org/x/crypto Known Vulnerabilities & Fixes

golang.org/x/crypto has 27 known security vulnerabilities in Go Modules. Upgrade to version 0.58.1-0.20261009181718-2f1f834330b2 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

27 Vulnerabilities

Recommended safe version: 0.58.1-0.20261009181718-2f1f834330b2

Upgrading to 0.58.1-0.20261009181718-2f1f834330b2 or later resolves all 27 known vulnerabilities in golang.org/x/crypto. Run: go get golang.org/x/crypto@v0.58.1-0.20261009181718-2f1f834330b2

Is golang.org/x/crypto in your project?

Check if you're affected and upgrade to 0.58.1-0.20261009181718-2f1f834330b2 to stay secure.

27
Total
8
Critical
6
High
7
Medium
0
Low

Security Summary

  • 29 affected version ranges have been identified across these 27 advisories.
  • 100% of known issues have a published fixed version.
  • Highest exploit-probability (EPSS) score for golang.org/x/crypto: 35.8%.
  • Remediation: go get -u golang.org/x/crypto

Vulnerabilities

27 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Mar 19, 2022, most recently Sep 2, 2026 (1629 days apart).

CVE / GHSASeverity
CVE-2023-48795
Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
Affected
All versions
Fixed in
0.17.0, 0.0.0-20231218163308-9d2ee975ef9f, 0.17.0
MEDIUM
CVE-2026-42508
golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2024-45337
Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto
Affected
All versions
Fixed in
0.31.0
CRITICAL
CVE-2020-29652
golang.org/x/crypto/ssh NULL Pointer Dereference vulnerability
Affected
All versions
Fixed in
0.0.0-20201216223049-8b5274cf687f
HIGH
CVE-2022-27191
golang.org/x/crypto/ssh Denial of service via crafted Signer
Affected
All versions
Fixed in
0.0.0-20220314234659-1baeb1ce4c0b
HIGH
CVE-2021-43565
x/crypto/ssh vulnerable to panic via malformed packets
Affected
All versions
Fixed in
0.0.0-20211202192323-5770296d904e
HIGH
CVE-2025-22869
golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange
Affected
All versions
Fixed in
0.35.0
HIGH
CVE-2022-30636
Limited directory traversal vulnerability on Windows in golang.org/x/crypto
Affected
All versions
Fixed in
0.0.0-20220525230936-793ad666bf5e
UNKNOWN
CVE-2025-58181
golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption
Affected
All versions
Fixed in
0.45.0
MEDIUM
CVE-2025-47914
golang.org/x/crypto/ssh/agent vulnerable to panic if message is malformed due to out of bounds read
Affected
All versions
Fixed in
0.45.0
MEDIUM
CVE-2026-39830
golang.org/x/crypto: Invoking client can cause server deadlock on unexpected responses
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2026-39832
golang.org/x/crypto doesn't drop invoking agent constraints when forwarding keys
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2025-47913
Potential denial of service in golang.org/x/crypto/ssh/agent
Affected
All versions
Fixed in
0.43.0
UNKNOWN
CVE-2026-46595
golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2026-39834
golang.org/x/crypto vulnerable to infinite loop on large channel writes
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2026-56854
Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
Affected
All versions
Fixed in
0.55.0
UNKNOWN
CVE-2026-39828
golang.org/x/crypto vulnerable to invoking bypass of certificate restrictions
Affected
All versions
Fixed in
0.52.0
MEDIUM
CVE-2026-46598
golang.org/x/crypto: Invoking pathological inputs can lead to client panic
Affected
All versions
Fixed in
0.52.0
MEDIUM
CVE-2026-39835
golang.org/x/crypto is vulnerable to invoking server panic during CheckHostKey/Authenticate flow
Affected
All versions
Fixed in
0.52.0
MEDIUM
CVE-2026-56855
Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh
Affected
All versions
Fixed in
0.56.0
UNKNOWN
CVE-2026-39833
golang.org/x/crypto doesn't enforce invoking key constraints
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2026-39831
golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed
Affected
All versions
Fixed in
0.52.0
CRITICAL
CVE-2026-46597
golang.org/x/crypto: Invoking byte arithmetic causes underflow and panic
Affected
All versions
Fixed in
0.52.0
HIGH
CVE-2026-39829
golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
Affected
All versions
Fixed in
0.52.0
HIGH
CVE-2026-78662
Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh
Affected
All versions
Fixed in
0.56.0
UNKNOWN
CVE-2026-39827
golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS
Affected
All versions
Fixed in
0.52.0
MEDIUM
GO-2026-5932
The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
Affected
All versions
Fixed in
0.58.1-0.20261009181718-2f1f834330b2
UNKNOWN

About This Data

Vulnerability data for golang.org/x/crypto is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of golang.org/x/crypto.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed