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.
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.
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 / GHSA | Severity |
|---|---|
| CVE-2023-48795 Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
| MEDIUM |
| CVE-2026-42508 golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status
| CRITICAL |
| CVE-2024-45337 Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto
| CRITICAL |
| CVE-2020-29652 golang.org/x/crypto/ssh NULL Pointer Dereference vulnerability
| HIGH |
| CVE-2022-27191 golang.org/x/crypto/ssh Denial of service via crafted Signer
| HIGH |
| CVE-2021-43565 x/crypto/ssh vulnerable to panic via malformed packets
| HIGH |
| CVE-2025-22869 golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange
| HIGH |
| CVE-2022-30636 Limited directory traversal vulnerability on Windows in golang.org/x/crypto
| UNKNOWN |
| CVE-2025-58181 golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption
| MEDIUM |
| CVE-2025-47914 golang.org/x/crypto/ssh/agent vulnerable to panic if message is malformed due to out of bounds read
| MEDIUM |
| CVE-2026-39830 golang.org/x/crypto: Invoking client can cause server deadlock on unexpected responses
| CRITICAL |
| CVE-2026-39832 golang.org/x/crypto doesn't drop invoking agent constraints when forwarding keys
| CRITICAL |
| CVE-2025-47913 Potential denial of service in golang.org/x/crypto/ssh/agent
| UNKNOWN |
| CVE-2026-46595 golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement
| CRITICAL |
| CVE-2026-39834 golang.org/x/crypto vulnerable to infinite loop on large channel writes
| CRITICAL |
| CVE-2026-56854 Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
| UNKNOWN |
| CVE-2026-39828 golang.org/x/crypto vulnerable to invoking bypass of certificate restrictions
| MEDIUM |
| CVE-2026-46598 golang.org/x/crypto: Invoking pathological inputs can lead to client panic
| MEDIUM |
| CVE-2026-39835 golang.org/x/crypto is vulnerable to invoking server panic during CheckHostKey/Authenticate flow
| MEDIUM |
| CVE-2026-56855 Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh
| UNKNOWN |
| CVE-2026-39833 golang.org/x/crypto doesn't enforce invoking key constraints
| CRITICAL |
| CVE-2026-39831 golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed
| CRITICAL |
| CVE-2026-46597 golang.org/x/crypto: Invoking byte arithmetic causes underflow and panic
| HIGH |
| CVE-2026-39829 golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
| HIGH |
| CVE-2026-78662 Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh
| UNKNOWN |
| CVE-2026-39827 golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS
| MEDIUM |
| GO-2026-5932 The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
| 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.
Related Go Modules Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of golang.org/x/crypto.