CVE-2024-31497 is a cryptographic vulnerability in PuTTY 0.68 through 0.80, fixed in 0.81, affecting ECDSA signatures made with NIST P-521 keys. The flaw is caused by biased nonce generation during ECDSA signing: the generated nonces are not uniformly random, and the first 9 bits of each nonce are zero. This leakage is sufficient for practical lattice-based attacks that recover the underlying private key after observing roughly 60 valid signatures produced by the same P-521 key. The issue affects PuTTY and related components such as Pageant, and also impacts third-party software that bundled the vulnerable PuTTY code, including affected versions of FileZilla, WinSCP, TortoiseGit, and TortoiseSVN. The vulnerability is especially dangerous where an attacker can collect signatures over time, such as from SSH authentication to a malicious server or from publicly visible signed Git operations performed through agent forwarding.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository is a proof-of-concept (POC) exploit for CVE-2024-31497, a vulnerability in the ECDSA nonce generation of PuTTY and TortoiseGit (ecc-ssh.c). The exploit leverages the bias in the nonce (top 9 bits zeroed) to recover the ECDSA private key using lattice-based cryptanalysis (Hidden Number Problem). The repository is structured as follows: - 'main.py' is the main entry point, taking as input a file of ECDSA signatures and a public key, and attempts to recover the private key, saving it to disk if successful. - 'attack/ecdsa_hnp.py' contains the core cryptanalytic logic for solving the Hidden Number Problem with biased ECDSA nonces. - 'attack/exploit.py' provides functions for key export and public key reading. - 'attack/usvp.py' and 'attack/utils.py' provide supporting cryptanalytic and utility functions. - 'test.py' is a test harness that generates test signatures and validates the attack. - 'test/signatures.txt' and 'test/pubkey.pub' are sample input files. The exploit requires at least 58-60 ECDSA signatures generated by a vulnerable implementation and the corresponding public key. It does not target a network service directly, but the README describes two attack surfaces: collecting signatures from signed GitHub commits or by running a rogue SSH server to collect signatures from clients using the vulnerable software. The exploit is a POC and does not include weaponized automation for signature collection, but demonstrates full private key recovery from collected data.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An ECDSA nonce vulnerability referenced as a similar class example in the article's resource section.
A vulnerability in PuTTY (CVE-2024-31497) allows attackers to recover SSH keys, aiding persistence and lateral movement in compromised environments.
A cryptographic flaw in PuTTY/Pageant where biased ECDSA nonce generation for NIST P-521 can allow private key recovery from a relatively small number of observed signatures, enabling subsequent unauthorized access and potential supply-chain compromise (e.g., via signed Git commits).
A cryptographic vulnerability in PuTTY’s ECDSA (NIST P-521) nonce generation where nonces are biased (first 9 bits zero), enabling lattice-based recovery of the ECDSA private key after observing ~60 signatures produced under the same key.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.