golang.org/x/crypto
Go28 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting golang.org/x/cryptopage 1 of 1
- CVE-2017-3204HIGHCVSS 8.1EG 8.1✓ Fixed in 0.0.0-20170330155735-e4e2799dd7aa2017-04-04
The Go SSH library (x/crypto/ssh) by default does not verify host keys, facilitating man-in-the-middle attacks. Default behavior changed in commit e4e2799 to require explicitly registering a hostkey verification mechanism.
- CVE-2019-11840MEDIUMCVSS 5.9EG 5.9✓ Fixed in 0.0.0-20190320223903-b7391e95e5762019-05-09
An issue was discovered in the supplementary Go cryptography library, golang.org/x/crypto, before v0.0.0-20190320223903-b7391e95e576. A flaw was found in the amd64 implementation of the golang.org/x/crypto/salsa20 and golang.org/x/crypto/s…
- CVE-2019-11841MEDIUMCVSS 5.9EG 5.9✓ Fixed in 0.0.0-20190424203555-c05e17bb3b2d2019-05-22
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 …
- CVE-2020-29652HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20201216223049-8b5274cf687f2020-12-17
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.
- CVE-2020-7919HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20200124225646-8b5121be2f682020-03-16
Go before 1.12.16 and 1.13.x before 1.13.7 (and the crypto/cryptobyte package before 0.0.0-20200124225646-8b5121be2f68 for Go) allows attacks on clients (resulting in a panic) via a malformed X.509 certificate.
- CVE-2020-9283HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20200220183623-bac4c82f69752020-02-20
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…
- CVE-2021-43565HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20211202192323-5770296d904e2022-09-06
The x/crypto/ssh package before 0.0.0-20211202192323-5770296d904e of golang.org/x/crypto allows an attacker to panic an SSH server.
- CVE-2022-27191HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20220314234659-1baeb1ce4c0b2022-03-18
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.
- CVE-2022-30636HIGHCVSS 7.5EG 7.5✓ Fixed in 0.0.0-20220525230936-793ad666bf5e2024-07-02
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. /), allowi…
- CVE-2023-48795MEDIUMCVSS 5.9EG 5.9✓ Fixed in 0.0.0-20231218163308-9d2ee975ef9f2023-12-18
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and…
- CVE-2024-45337CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.31.02024-12-12
Applications and libraries which misuse connection.serverAuthenticate (via callback field ServerConfig.PublicKeyCallback) may be susceptible to an authorization bypass. The documentation for ServerConfig.PublicKeyCallback says that "A call…
- CVE-2025-22869HIGHCVSS 7.5EG 7.5✓ Fixed in 0.35.02025-02-26
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-47913HIGHCVSS 7.5EG 7.5✓ Fixed in 0.43.02025-11-13
SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.
- CVE-2025-47914MEDIUMCVSS 5.3EG 5.3✓ Fixed in 0.45.02025-11-19
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.
- CVE-2025-58181MEDIUMCVSS 5.3EG 5.3✓ Fixed in 0.45.02025-11-19
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.
- CVE-2026-39827MEDIUMCVSS 6.5EG 6.5✓ Fixed in 0.52.02026-05-22
An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly remo…
- CVE-2026-39828MEDIUMCVSS 6.3EG 6.3✓ Fixed in 0.52.02026-05-22
When an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially dropping certificate restrictions such as force-command after a second factor succeede…
- CVE-2026-39829HIGHCVSS 7.5EG 7.5✓ Fixed in 0.52.02026-05-22
The RSA and DSA public key parsers did not enforce size limits on key parameters. A crafted public key with an excessively large modulus or DSA parameter could cause several minutes of CPU consumption during signature verification. This co…
- CVE-2026-39830CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
A malicious SSH peer could send unsolicited global request responses to fill an internal buffer, blocking the connection's read loop. The blocked goroutine could not be released by calling Close(), resulting in a resource leak per connecti…
- CVE-2026-39831CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
The Verify() method for FIDO/U2F security key types (sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com) did not check the User Presence flag. Signatures generated without physical touch were accepted, allowing unattended use o…
- CVE-2026-39832CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
When adding a key to a remote agent constraint extensions such as restrict-destination-v00@openssh.com were not serialized in the request. Destination restrictions were silently stripped when forwarding keys, allowing unrestricted use of t…
- CVE-2026-39833CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was …
- CVE-2026-39834CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size co…
- CVE-2026-39835MEDIUMCVSS 5.3EG 5.3✓ Fixed in 0.52.02026-05-22
SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a certificate. CertChecker now returns an error instead of panicking when these c…
- CVE-2026-42508CRITICALCVSS 9.1EG 9.1✓ Fixed in 0.52.02026-05-22
Previously, a revoked 'SignatureKey' belonging to a CA was not correctly checked for revocation. Now, both the 'key' and 'key.SignatureKey' are checked for @revoked.
- CVE-2026-46595CRITICALCVSS 10.0EG 10.0✓ Fixed in 0.52.02026-05-22
Previously, CVE-2024-45337 fixed an authorization bypass for misused ssh server configurations; if any other type of callback is passed other than public key, then the source-address validation would be skipped.
- CVE-2026-46597HIGHCVSS 7.5EG 7.5✓ Fixed in 0.52.02026-05-22
An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.
- CVE-2026-46598MEDIUMCVSS 5.3EG 5.3✓ Fixed in 0.52.02026-05-22
For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wire bytes, leading to a panic when used.
Check whether golang.org/x/crypto is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for golang.org/x/crypto CVEs against the assets you own.
Start Free Scan →