---
id: CVE-2024-23342
aliases:
  - GHSA-wj6h-64fc-37mp
  - PYSEC-2026-1325
title: Minerva timing attack on P-256 in python-ecdsa
summary: Minerva timing attack on P-256 in python-ecdsa
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'
vendor: ecdsa
product: ecdsa
ecosystem: pip
affected:
  - ecdsa
published: '2024-01-22'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:09.447249599Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-wj6h-64fc-37mp'
references:
  - url: >-
      https://github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-wj6h-64fc-37mp
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-23342'
  - url: 'https://github.com/tlsfuzzer/python-ecdsa'
  - url: 'https://github.com/tlsfuzzer/python-ecdsa/blob/master/SECURITY.md'
  - url: 'https://minerva.crocs.fi.muni.cz'
  - url: >-
      https://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python
tags:
  - osv
  - pip
epss: 0.00985
epssPercentile: 0.60733
ingestedAt: '2026-07-08T18:25:53.814Z'
---

## Overview

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.

## Affected packages

- `ecdsa`

## Remediation

Refer to the advisory for the patched release.
