CVE-2024-23342: Ecdsa Minerva Timing Attack On P-256 Vulnerability
HIGHCVE-2024-23342 is a HIGH (CVSS 7.4) minerva timing attack on p-256 vulnerability (CWE-203: Observable Discrepancy) affecting Ecdsa libraries in the PyPI ecosystem. The issue involves minerva timing attack on p-256 in python-ecdsa. Remediation is available in the latest vendor maintenance releases.
CVE-2024-23342 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-23342
To remediate this vulnerability, upgrade all affected Ecdsa dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ecdsa>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ecdsa
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-23342, inspect your installed packages using pip:
pip show ecdsa
Analyze the terminal output to locate any version of Ecdsa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show ecdsa command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Ecdsa, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-23342 Affected Ecdsa Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ecdsa
|
PyPI |
|
|
References
Frequently Asked Questions
What is CVE-2024-23342?
Which Ecdsa versions are affected?
What version fixes CVE-2024-23342?
Is ecdsa affected?
What is the CVSS score of CVE-2024-23342?
What CWE is associated with CVE-2024-23342?
How can I check PyPI dependencies for CVE-2024-23342?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wj6h-64fc-37mp",
"modified" : "2025-07-30T18:17:40Z",
"published" : "2024-01-22T21:35:27Z",
"aliases" : [ "CVE-2024-23342" ],
"summary" : "Minerva timing attack on P-256 in python-ecdsa",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ecdsa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-wj6h-64fc-37mp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23342"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tlsfuzzer/python-ecdsa"
}, {
"type" : "WEB",
"url" : "https://github.com/tlsfuzzer/python-ecdsa/blob/master/SECURITY.md"
}, {
"type" : "WEB",
"url" : "https://minerva.crocs.fi.muni.cz"
}, {
"type" : "WEB",
"url" : "https://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-203", "CWE-208", "CWE-385" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-22T21:35:27Z",
"nvd_published_at" : "2024-01-23T00:15:26Z"
}
}