• News/
  • bleepingcomputer-20240416150157

PuTTY SSH client flaw allows recovery of cryptographic private keys

BleepingComputer
·
Published Apr 16, 2024
·
Updated

A vulnerability tracked as CVE-2024-31497 in PuTTY 0.68 through 0.80 could potentially allow attackers with access to 60 cryptographic signatures to recover the private key used for their generation. PuTTY is a popular open-source terminal emulator, serial console, and network file transfer application that supports SSH (Secure Shell), Telnet, SCP (Secure Copy Protocol), and SFTP (SSH File Transfer Protocol). System administrators and developers predominantly use the software to remotely access and manage servers and other networked devices over SSH from a Windows-based client. The vulnerability tracked as CVE-2024-31497 was discovered by Fabian Bäumer and Marcus Brinkmann of the Ruhr University Bochum and is caused by how PuTTY generates ECDSA nonces (temporary unique cryptographic numbers) for the NIST P-521 curve used for SSH authentication. Specifically, there's a bias due to PuTYY's use of a deterministic way to generate these numbers to compensate for the lack of a robust cryptographic random number generator on specific Windows versions. "PuTTY's technique worked by making a SHA-512 hash and then reducing it mod q, where q is the order of the group used in the DSA system. For integer DSA (for which PuTTY's technique was originally developed), q is about 160 bits; for elliptic-curve DSA (which came later), it has about the same number of bits as the curve modulus, so 256 or 384 or 521 bits for the NIST curves." "In all of those cases except P521, the bias introduced by...

Read full article

Affected Software

1 affected component
Putty PuTTY>=0.68<=0.80

Frequently Asked Questions

1

Which PuTTY versions and cryptographic keys are affected by CVE-2024-31497?

The issue affects PuTTY versions 0.68 through 0.80. It involves ECDSA signatures using the NIST P-521 curve for SSH authentication.

2

What would an attacker need to recover a private key?

An attacker would potentially need access to 60 cryptographic signatures generated with the affected private key. The article attributes the risk to biased ECDSA nonces generated by PuTTY.

3

Why did PuTTY generate biased nonces?

PuTTY used a deterministic nonce-generation method to compensate for the lack of a robust cryptographic random number generator on certain Windows versions. The method involved creating a SHA-512 hash and reducing it modulo q, the order of the DSA group.

4

Who discovered the vulnerability?

Fabian Bäumer and Marcus Brinkmann of Ruhr University Bochum discovered CVE-2024-31497.

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