CVEfocus › CVE database › CVE-2024-31497

CVE-2024-31497

CVSS 5.9 MediumEPSS 3.1% (higher than 89% of CVEs)Published 2024-04-15Updated 2025-11-04Assigner: mitre

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.

CWE-338

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
7Fix pending
3Under investigation
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04filezillaNot affected
vulnerable_code_not_present
Ubuntu 26.04puttyNot affected
vulnerable_code_not_present
Ubuntu 25.10filezillaNot affected
vulnerable_code_not_present
Ubuntu 25.10puttyNot affected
vulnerable_code_not_present
Ubuntu 24.04filezillaUnder investigationUBUNTU-CVE-2024-31497
Ubuntu 24.04puttyNot affected
vulnerable_code_not_present
Ubuntu 22.04filezillaUnder investigationUBUNTU-CVE-2024-31497
Ubuntu 22.04puttyUnder investigationUBUNTU-CVE-2024-31497
Ubuntu 20.04filezillaFix pendingUBUNTU-CVE-2024-31497
Ubuntu 20.04puttyFix pendingUBUNTU-CVE-2024-31497
Ubuntu 18.04filezillaFix pendingUBUNTU-CVE-2024-31497
Ubuntu 18.04puttyFix pendingUBUNTU-CVE-2024-31497
Ubuntu 16.04filezillaFix pendingUBUNTU-CVE-2024-31497
Ubuntu 16.04puttyFix pendingUBUNTU-CVE-2024-31497
Debian 14filezillaFixed3.67.0-1DEBIAN-CVE-2024-31497
Debian 14puttyFixed0.81-1DEBIAN-CVE-2024-31497
Debian 13filezillaFixed3.67.0-1DEBIAN-CVE-2024-31497
Debian 13puttyFixed0.81-1DEBIAN-CVE-2024-31497
Debian 12filezillaFix pendingDEBIAN-CVE-2024-31497
Debian 12puttyFixed0.78-2+deb12u2DEBIAN-CVE-2024-31497
Alpine Linux 3.24puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.23puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.22puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.21puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.20puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.19puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.18puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.17puttyFixed0.81-r0ALPINE-CVE-2024-31497
Alpine Linux 3.16puttyFixed0.81-r0ALPINE-CVE-2024-31497

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.