patchminder
Proof of concept · GitHub CVE-2024-45337

Vulnerabilityin golang.org/x/crypto/ssh.

Published 11 Dec 2024 · Updated 18 Feb 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 3.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.31.0 or later
In plain words

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.

What to do now
  • Upgrade golang.org/x/crypto/ssh to 0.31.0 or later.
  • Upgrade golang.org/x/crypto (Go) to 0.31.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
golang.org/x/crypto/ssh
before 0.31.0
0.31.0
CVE record
golang.org/x/crypto (Go)
before 0.31.0
0.31.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 27 Aug 2024
    CVE ID reserved by Go.
  2. 11 Dec 2024
    Published in the CVE List.
  3. 17 Dec 2024
    First public proof of concept on GitHub.
  4. 18 Feb 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
5 repositories
GitHubno warning signs foundNHAS/CVE-2024-45337-POC6 stars · created 17 Dec 2024Proof of concept (POC) for CVE-2024-45337
GitHubno warning signs foundNHAS/VULNERABLE-CVE-2024-453371 stars · created 17 Dec 2024An example project that showcases golang code vulnerable to CVE-2024-45337
GitHubno warning signs foundpeace-maker/CVE-2024-453371 stars · created 24 Jan 2025Proof of Concept for CVE-2024-45337 against Gitea and Forgejo
GitHubno warning signs foundBackline-playground/gogs0 stars · created 13 Apr 2026Fork of gogs/gogs for reachability benchmark testing (CVE-2024-45337)
GitHubno warning signs foundferralon-demo/gitea-cve-2024-453370 stars · created 7 Jul 2026Security case-study: reachability vs SCA on Gitea CVE-2024-45337 · real code reconstructed at historical commits (PoE → failed fix → fix). Demo only, not for use.

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.

Related

Other golang.org/x/crypto/ssh vulnerabilities

References
Cite this page

Patchminder. CVE-2024-45337: Vulnerability in golang.org/x/crypto/ssh. https://patchminder.com/cve/cve-2024-45337/ (accessed 5 December 2026).