HighGHSA-wj6h-64fc-37mpCVE-2024-23342PYSEC-2026-1325

Minerva timing attack on P-256 in python-ecdsa

Published 22 Jan 2024 · Updated 10 Sept 2026

Is your project on an affected ecdsa?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

ecdsaPyPI
Affected
All versions
Fixed in
No fix released

Details

python-ecdsa has been found to be subject to a Minerva timing attack on the P-256 curve. Using the ecdsa.SigningKey.sign_digest() API function and timing signatures an attacker can leak the internal nonce which may allow for private key discovery. Both ECDSA signatures, key generation, and ECDH operations are affected. ECDSA signature verification is unaffected. The python-ecdsa project considers side channel attacks out of scope for the project and there is no planned fix.

Is GHSA-wj6h-64fc-37mp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ecdsa, and gives you the command that fixes it.

More advisories for ecdsa

  • MediumCVE-2026-33936python-ecdsa: Denial of Service via improper DER length validation in crafted private keys · 27 Mar 2026
  • CriticalCVE-2019-14859Improper Verification of Cryptographic Signature in Pure-Python ECDSA · 1 Apr 2020
  • HighCVE-2019-14853ecdsa Denial of Service vulnerability in signature verification and signature malleability · 8 Oct 2019
ecdsa security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.