Golang.Org X Crypto Ssh vulnerabilities
9 known vulnerabilities affecting golang.org/x_crypto_ssh.
Total CVEs
9
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL4HIGH2MEDIUM3
Vulnerabilities
Page 1 of 1
CVE-2026-46595P2CRITICALCVSS 9.1≥ 0, < 0.52.02026-06-25
CVE-2026-46595 [CRITICAL] CWE-863 golang.org/x/crypto/ssh: Invoking VerifiedPublicKeyCallback permissions skip enforcement
golang.org/x/crypto/ssh: Invoking VerifiedPublicKeyCallback permissions skip enforcement
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.
ghsa
CVE-2026-39830P3CRITICAL≥ 0, < 0.52.02026-06-25
CVE-2026-39830 [CRITICAL] CWE-119 golang.org/x/crypto/ssh: Invoking client can cause server deadlock on unexpected responses
golang.org/x/crypto/ssh: Invoking client can cause server deadlock on unexpected responses
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 connection. Unsolicited global responses are now dis
ghsa
CVE-2026-39834P3CRITICAL≥ 0, < 0.52.02026-06-25
CVE-2026-39834 [CRITICAL] CWE-190 golang.org/x/crypto/ssh vulnerable to infinite loop on large channel writes
golang.org/x/crypto/ssh vulnerable to infinite loop on large channel writes
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 comparison now uses int64 to prevent truncation.
ghsa
CVE-2026-39831P3CRITICAL≥ 0, < 0.52.02026-06-25
CVE-2026-39831 [CRITICAL] CWE-862 golang.org/x/crypto/ssh: FIDO/U2F security key physical presence check can be bypassed
golang.org/x/crypto/ssh: FIDO/U2F security key physical presence check can be bypassed
The Verify() method for FIDO/U2F security key types ([email protected], [email protected]) did not check the User Presence flag. Signatures generated without physical touch were accepted, allowing unattended use of a hardware security key. To restore the previous b
ghsa
CVE-2026-39829P3HIGH≥ 0, < 0.52.02026-06-25
CVE-2026-39829 [HIGH] CWE-347 golang.org/x/crypto/ssh: Invoking pathological RSA/DSA parameters may cause DoS
golang.org/x/crypto/ssh: Invoking pathological RSA/DSA parameters may cause DoS
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 could be triggered by unauthenticated clients during public key authenti
ghsa
CVE-2026-46597P3HIGH≥ 0, < 0.52.02026-06-25
CVE-2026-46597 [HIGH] CWE-704 golang.org/x/crypto/ssh: Invoking byte arithmetic causes underflow and panic
golang.org/x/crypto/ssh: Invoking byte arithmetic causes underflow and panic
An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.
ghsa
CVE-2026-39828P3MEDIUM≥ 0, < 0.52.02026-06-25
CVE-2026-39828 [MEDIUM] CWE-295 golang.org/x/crypto/ssh vulnerable to invoking bypass of certificate restrictions
golang.org/x/crypto/ssh vulnerable to invoking bypass of certificate restrictions
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 succeeded. Returning non-nil Permissions with PartialSuccessError now re
ghsa
CVE-2026-39827P4MEDIUM≥ 0, < 0.52.02026-06-25
CVE-2026-39827 [MEDIUM] CWE-924 golang.org/x/crypto/ssh: Invoking memory leak when rejecting channels can lead to DoS
golang.org/x/crypto/ssh: Invoking memory leak when rejecting channels can lead to DoS
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 removed from the connection's internal state and released fo
ghsa
CVE-2026-39835P4MEDIUM≥ 0, < 0.52.02026-06-25
CVE-2026-39835 [MEDIUM] CWE-295 golang.org/x/crypto/ssh is vulnerable to invoking server panic during CheckHostKey/Authenticate flow
golang.org/x/crypto/ssh is vulnerable to invoking server panic during CheckHostKey/Authenticate flow
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 callbacks are nil.
ghsa