Vulnerabilityin golang.org/x/crypto/ssh.
Proof of concept public (GitHub).
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 to this function does not guarantee that the key offered is in fact used to authenticate." Specifically, the SSH protocol allows clients to inquire about whether a public key is acceptable before proving control of the corresponding private key. PublicKeyCallback may be called with multiple keys, and the order in which the keys were provided cannot be used to infer which key the client successfully authenticated with, if any. Some applications, which store the key(s) passed to PublicKeyCallback (or derived information) and make security relevant determinations based on it once the connection is established, may make incorrect assumptions.
- Upgrade golang.org/x/crypto/ssh to 0.31.0 or later.
- Upgrade golang.org/x/crypto (Go) to 0.31.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 27 Aug 2024CVE ID reserved by Go.
- 11 Dec 2024Published in the CVE List.
- 17 Dec 2024First public proof of concept on GitHub.
- 18 Feb 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other golang.org/x/crypto/ssh vulnerabilities
Patchminder. CVE-2024-45337: Vulnerability in golang.org/x/crypto/ssh. https://patchminder.com/cve/cve-2024-45337/ (accessed 5 December 2026).