CVE-2024-31497
mediumpriority · track · 36EPSS 0.057 · 93 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-22
In PuTTY 0.68 through 0.80 before 0.81, biased ECDSA nonce generation allows an attacker to recover a user's NIST P-521 secret key via a quick attack in approximately 60 signatures. This is especially important in a scenario where an adversary is able to read messages signed by PuTTY or Pageant. The required set of signed messages may be publicly readable because they are stored in a public Git service that supports use of SSH for commit signing, and the signatures were made by Pageant through an agent-forwarding mechanism. In other words, an adversary may already have enough signature information to compromise a victim's private key, even if there is no further use of vulnerable PuTTY versions. After a key compromise, an adversary may be able to conduct supply-chain attacks on software maintained in Git. A second, independent scenario is that the adversary is an operator of an SSH server to which the victim authenticates (for remote login or file copy), even though this server is not fully trusted by the victim, and the victim uses the same private key for SSH connections to other services operated by other entities. Here, the rogue server operator (who would otherwise have no way to determine the victim's private key) can derive the victim's private key, and then use it for unauthorized access to those other services. If the other services include Git services, then again it may be possible to conduct supply-chain attacks on software maintained in Git. This also affects, for example, FileZilla before 3.67.0, WinSCP before 6.3.3, TortoiseGit before 2.15.0.1, and TortoiseSVN through 1.14.6.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- FixedFileZilla Clientcert_bund
Update to the latest version of the product. At least version 3.67.0.
https://filezilla-project.org/download.php?type=client - FixedPuTTYcert_bund
Update to the latest version of the product. At least version 0.61. Additionally, any key material using NIST P-521 must be revoke/discard and new keys have to be generated.
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html - FixedTortoiseGitcert_bund
Update to the latest version of the product. At least version 2.15.0.1.
https://tortoisegit.org/download/ - FixedWinSCPcert_bund
Update to the latest version of the product. At least version 6.3.3.
https://winscp.net/eng/download.php - WorkaroundTortoiseSVNcert_bund
As long as there is no official patch available: Configure TortoiseSVN to use PuTTY's latest plink.exe instead of the included exe.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.6–10
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (4)
Public proof-of-concept and weaponised exploit code.
- edutko/cve-2024-31497edutko/cve-2024-31497PoC · poc_in_github
affected products (30)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- BSI-2024-0001Secret Key Recovery of NIST P-521 Private Keys through biased ECDSA nonces in PuTTY client2024-04-15csaf · cert_bundDE
The PuTTY client and all related components generate heavily biased ECDSA nonces in the case of NIST P-521. This allows for full secret key recovery in roughly 60 signatures by using state-of-the-art techniques. These signatures can either be harvested by a malicious server (machine-in-the-middle attacks are not possible given that clients do not transmit their signature in the clear) or from any other source, e.g. signed git commits through forwarded agents.
- WID-SEC-W-2024-0866PuTTY: Schwachstelle ermöglicht Erlangen des privaten SchlüsselsDeutsch2024-04-15csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in PuTTY und Anwendungen, die PuTTY nutzen, wie z.B. FileZilla, WinSCP und TortoiseGit ausnutzen, um bei 521-bit ECDSA den privaten Schlüssel des Nutzers zu erlangen.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (77)
External citations — patches, advisories, analysis.
- https://bugzilla.redhat.com/show_bug.cgi?id=2275183cnnvd
- https://bugzilla.suse.com/show_bug.cgi?id=1222864cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-31497/cnnvd
- https://docs.ccv.brown.edu/oscar/connecting-to-oscar/ssh/ssh-agent-forwarding/key-generation-and-agent-forwarding-with-puttycnnvd
- https://filezilla-project.org/versions.phpcnnvd
- https://git.tartarus.org/?h=c193fe9848f50a88a4089aac647fecc31ae96d27&p=simon/putty.gitcnnvd
- https://github.com/advisories/GHSA-6p4c-r453-8743cnnvd
- https://news.ycombinator.com/item?id=40044665cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan