GitHub Advisoryadvisory · PyPI

GHSA-wj6h-64fc-37mp Minerva timing attack on P-256 in python-ecdsa

HIGH Published 2024-01-22 Modified 2025-07-30 Official page ↗
Aliases
CVE-2024-23342
Ecosystem
PyPI
Packages
ecdsa
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-203, CWE-208, CWE-385
Reviewed
2024-01-22

Affected packages

• PyPI ecdsa: all versions (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-23342 The `ecdsa` PyPI package is a pure Python implementation of ECC (Elliptic Curve Cryptography) with support for ECDSA (Elliptic Curve… vulnerability

Weakness · CWE (3)

  • CWE-203 Observable Discrepancy weakness
  • CWE-208 Observable Timing Discrepancy weakness
  • CWE-385 Covert Timing Channel weakness

References