Golang.Org X Crypto vulnerabilities

15 known vulnerabilities affecting golang.org/x_crypto.

Total CVEs
15
CISA KEV
0
Public exploits
2
Exploited in wild
0
Severity breakdown
CRITICAL1HIGH7MEDIUM5UNKNOWN2

Vulnerabilities

Page 1 of 1
CVE-2025-58181MEDIUM≥ 0, < 0.45.02025-11-19
CVE-2025-58181 [MEDIUM] CWE-770 golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.
ghsaosv
CVE-2025-47914MEDIUM≥ 0, < 0.45.02025-11-19
CVE-2025-47914 [MEDIUM] CWE-125 golang.org/x/crypto/ssh/agent vulnerable to panic if message is malformed due to out of bounds read golang.org/x/crypto/ssh/agent vulnerable to panic if message is malformed due to out of bounds read SSH Agent servers do not validate the size of messages when processing new identity requests, which may cause the program to panic if the message is malformed due to an out of bounds read.
ghsaosv
CVE-2025-47913UNKNOWN≥ 0, < 0.43.02025-11-13
CVE-2025-47913 Potential denial of service in golang.org/x/crypto/ssh/agent Potential denial of service in golang.org/x/crypto/ssh/agent SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.
osv
CVE-2025-22869HIGH≥ 0, < 0.35.02025-04-12
CVE-2025-22869 [HIGH] CWE-770 golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange 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.
ghsaosv
CVE-2024-45337CRITICAL≥ 0, < 0.31.02024-12-11
CVE-2024-45337 [CRITICAL] CWE-285 Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto Applications and libraries which misuse the ServerConfig.PublicKeyCallback callback may be susceptible to an authorization bypass. The documentation for ServerConfig.PublicKeyCallback says that "A call to this function does not guarantee that the key offered is in fact used
ghsaosv
CVE-2022-30636UNKNOWN≥ 0, < 0.0.0-20220525230936-793ad666bf5e2024-07-02
CVE-2022-30636 Limited directory traversal vulnerability on Windows in golang.org/x/crypto Limited directory traversal vulnerability on Windows in golang.org/x/crypto httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently to filepath.Base, since Windows uses a different path separator (\ vs. /), allowing a user to provide a relative path, i.e. .well-known/acme-challenge/..\..\asd becomes ..\..
osv
CVE-2023-48795MEDIUMPoC≥ 0.1.0, < 0.17.0≥ 0, < 0.0.0-20231218163308-9d2ee975ef9f2023-12-18
CVE-2023-48795 [MEDIUM] CWE-345 Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin ### Summary Terrapin is a prefix truncation attack targeting the SSH protocol. More precisely, Terrapin breaks the integrity of SSH's secure channel. By carefully adjusting the sequence numbers during the handshake, an attacker can remove an arbitrary amount of messages sent by the client or ser
ghsaosv
CVE-2017-3204HIGH≥ 0, < 0.0.0-20170330155735-e4e2799dd7aa2023-02-07
CVE-2017-3204 [HIGH] golang.org/x/crypto/ssh Man-in-the-Middle attack golang.org/x/crypto/ssh Man-in-the-Middle attack The Go SSH library (golang.org/x/crypto/ssh) by default does not verify host keys, facilitating man-in-the-middle attacks if ClientConfig.HostKeyCallback is not set. Default behavior changed in commit e4e2799 to require explicitly registering a hostkey verification mechanism.
ghsaosv
CVE-2021-43565HIGH≥ 0, < 0.0.0-20211202192323-5770296d904e2022-09-07
CVE-2021-43565 [HIGH] x/crypto/ssh vulnerable to panic via malformed packets x/crypto/ssh vulnerable to panic via malformed packets The x/crypto/ssh package before 0.0.0-20211202192323-5770296d904e of golang.org/x/crypto allows an unauthenticated attacker to panic an SSH server. When using AES-GCM or ChaCha20Poly1305, consuming a malformed packet which contains an empty plaintext causes a panic.
ghsaosv
CVE-2020-29652HIGH≥ 0, < 0.0.0-20201216223049-8b5274cf687f2022-05-24
CVE-2020-29652 [HIGH] CWE-476 golang.org/x/crypto/ssh NULL Pointer Dereference vulnerability golang.org/x/crypto/ssh NULL Pointer Dereference vulnerability A nil pointer dereference in the golang.org/x/crypto/ssh component through v0.0.0-20201203163018-be400aefbc4c for Go allows remote attackers to cause a denial of service against SSH servers. An attacker can craft an authentication request message for the `gssapi-with-mic` method which will cause NewServerConn to panic via a nil pointer deref
ghsaosv
CVE-2019-11841MEDIUM≥ 0, < 0.0.0-20190424203555-c05e17bb3b2d2022-05-24
CVE-2019-11841 [MEDIUM] CWE-347 Golang/x/crypto message forgery vulnerability Golang/x/crypto message forgery vulnerability A message-forgery issue was discovered in `crypto/openpgp/clearsign/clearsign.go` in supplementary Go cryptography libraries 2019-03-25. According to the OpenPGP Message Format specification in RFC 4880 chapter 7, a cleartext signed message can contain one or more optional "Hash" Armor Headers. The "Hash" Armor Header specifies the message digest algorithm(s) used for the
ghsaosv
CVE-2019-11840MEDIUM≥ 0, < 0.0.0-20190320223903-b7391e95e5762022-05-24
CVE-2019-11840 [MEDIUM] CWE-330 golang.org/x/crypto/salsa20/salsa uses insufficiently random values golang.org/x/crypto/salsa20/salsa uses insufficiently random values An issue was discovered in supplementary Go cryptography libraries, aka golang-googlecode-go-crypto, before 2019-03-20. A flaw was found in the amd64 implementation of golang.org/x/crypto/salsa20 and golang.org/x/crypto/salsa20/salsa. If more than 256 GiB of keystream is generated, or if the counter otherwise grows greater than 3
ghsaosv
CVE-2022-27191HIGH≥ 0, < 0.0.0-20220314234659-1baeb1ce4c0b2022-03-19
CVE-2022-27191 [HIGH] CWE-327 golang.org/x/crypto/ssh Denial of service via crafted Signer golang.org/x/crypto/ssh Denial of service via crafted Signer The golang.org/x/crypto/ssh package before 0.0.0-20220314234659-1baeb1ce4c0b for Go allows an attacker to crash a server in certain circumstances involving AddHostKey.
ghsaosv
CVE-2020-7919HIGHCVSS 7.5≥ 0, < 0.0.0-20200124225646-8b5121be2f682021-06-23
CVE-2020-7919 [HIGH] CWE-295 Helm uses crypto package vulnerable to panic from malformed X.509 certificate Helm uses crypto package vulnerable to panic from malformed X.509 certificate The Helm core maintainers have identified a high severity security vulnerability in Go's `crypto` package affecting all versions prior to Helm 2.16.8 and Helm 3.1.0. Thanks to @ravin9249 for identifying the vulnerability. ### Impact Go before 1.12.16 and 1.13.x before 1.13.7 (and the `crypto/cryptobyte` packag
ghsaosv
CVE-2020-9283HIGHPoC≥ 0, < 0.0.0-20200220183623-bac4c82f69752021-05-18
CVE-2020-9283 [HIGH] CWE-347 Improper Verification of Cryptographic Signature in golang.org/x/crypto Improper Verification of Cryptographic Signature in golang.org/x/crypto golang.org/x/crypto before v0.0.0-20200220183623-bac4c82f6975 for Go allows a panic during signature verification in the golang.org/x/crypto/ssh package. A client can attack an SSH server that accepts public keys. Also, a server can attack any SSH client.
ghsaosv