CVE-2024-31497: Secret Key Recovery of NIST P-521 Private Keys Through Biased ECDSA Nonces in PuTTY Client

Published Apr 15, 2024
·
Updated

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. One 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. Because SSH is sometimes used to authenticate to Git services, it is possible that this vulnerability could be leveraged for supply-chain attacks on software maintained in Git. It is also conceivable that signed messages from PuTTY or Pageant are readable by adversaries more easily in other scenarios, but none have yet been disclosed. ### Affected Products - PuTTY 0.68 - 0.80 The following (not necessarily complete) list of products bundle an affected PuTTY version and are therefore vulnerable as well: - FileZilla 3.24.1 - 3.66.5 - WinSCP 5.9.5 - 6.3.2 - TortoiseGit 2.4.0.2 - 2.15.0 - TortoiseSVN 1.10.0 - 1.14.6 ### Impact The nonce bias allows for full secret key recovery of NIST P-521 keys after a malicious actor has seen roughly 60 valid ECDSA signatures generated by any PuTTY component under the same key. Luckily, client signatures are transmitted within the secure channel of SSH, requiring a malicious server to acquire such signatures. If the key has been used to sign arbitrary data (e.g., git commits by forwarding Pageant to a development host), the publicly available signatures (e.g., on GitHub) can be used as well. All NIST P-521 client keys used with PuTTY must be considered compromised, given that the attack can be carried out even after the root cause has been fixed in the source code (assuming that ~60 pre-patch signatures are available to an adversary). ### Mitigations This vulnerability has been fixed in PuTTY 0.81, FileZilla 3.67.0, WinSCP 6.3.3, and TortoiseGit 2.15.0.1. Users of TortoiseSVN are advised to configure TortoiseSVN to use Plink from the latest PuTTY 0.81 release when accessing a SVN repository via SSH until a patch becomes available. ECDSA NIST-P521 keys used with any vulnerable product / component should be considered compromised and consequently revoked by removing them from authorized_keys, GitHub, ... References: https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/vuln-p521-bias.html

Affected Software

12 affected componentsFixes available
redhat/PuTTY<0.81
0.81
redhat/FileZilla<3.67.0
3.67.0
Putty PuTTY>=0.68<0.81
Filezilla-project Filezilla Client<3.67.0
WinSCP WinSCP<6.3.3
TortoiseGit TortoiseGit<2.15.0.1
Tigris Tortoisesvn<1.14.6
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Fedoraproject Fedora=40
debian/filezilla<=3.52.2-3+deb11u1, <=3.63.0-1+deb12u3
3.68.1-13.69.5-1
debian/putty<=0.74-1+deb11u1, <=0.78-2+deb12u1
0.74-1+deb11u20.78-2+deb12u20.83-3

Event History

Apr 15, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 16, 2024
News Published
via BleepingComputer·03:01 PM
News Published
via BleepingComputer·03:03 PM
May 9, 2024
News Published
via BleepingComputer·07:27 PM
May 20, 2024
News Published
via The Register·02:28 AM
News Published
via The Register·02:31 AM
Nov 20, 2025
Data Sourced
via Debian·05:44 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-31497?

CVE-2024-31497 is categorized as a critical vulnerability due to its potential to compromise user secret keys.

2

How do I fix CVE-2024-31497?

To mitigate CVE-2024-31497, you need to update PuTTY to version 0.81 or later.

3

Which versions of PuTTY are affected by CVE-2024-31497?

PuTTY versions from 0.68 through 0.80 are affected by CVE-2024-31497.

4

Can CVE-2024-31497 be exploited remotely?

Yes, CVE-2024-31497 can be exploited remotely if an attacker can intercept and analyze signatures.

5

What type of attack is associated with CVE-2024-31497?

CVE-2024-31497 enables an attacker to recover a user's NIST P-521 secret key through biased ECDSA nonce generation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203