CVE-2019-14859: Ecdsa Improper Verification Of Cryptographic Signature Vulnerability
CRITICALCVE-2019-14859 is a CRITICAL (CVSS 9.1) improper verification of cryptographic signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Ecdsa libraries in the PyPI ecosystem. The issue involves improper verification of cryptographic signature in pure-python ecdsa. Remediation is available by upgrading affected packages to version 0.13.3.
CVE-2019-14859 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2019-14859
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>=0.13.3
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-2019-14859, 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 0.13.3), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. 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-2019-14859 Affected Ecdsa Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ecdsa
|
PyPI |
< 0.13.3
|
0.13.3
|
References
Frequently Asked Questions
What is CVE-2019-14859?
Which Ecdsa versions are affected?
What version fixes CVE-2019-14859?
Is ecdsa affected?
What is the CVSS score of CVE-2019-14859?
What CWE is associated with CVE-2019-14859?
How can I check PyPI dependencies for CVE-2019-14859?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8qxj-f9rh-9fg2",
"modified" : "2024-09-20T16:52:23Z",
"published" : "2020-04-01T16:35:26Z",
"aliases" : [ "CVE-2019-14859" ],
"summary" : "Improper Verification of Cryptographic Signature in Pure-Python ECDSA",
"details" : "A flaw was found in all python-ecdsa versions before 0.13.3, where it did not correctly verify whether signatures used DER encoding. Without this verification, a malformed signature could be accepted, making the signature malleable. Without proper verification, an attacker could use a malleable signature to create false transactions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ecdsa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.13.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-14859"
}, {
"type" : "WEB",
"url" : "https://github.com/warner/python-ecdsa/issues/114"
}, {
"type" : "WEB",
"url" : "https://github.com/warner/python-ecdsa/pull/115"
}, {
"type" : "WEB",
"url" : "https://github.com/tlsfuzzer/python-ecdsa/commit/3427fa29f319b27898a28601955807abb44c0830"
}, {
"type" : "WEB",
"url" : "https://github.com/tlsfuzzer/python-ecdsa/commit/9080d1d5ac533da0de00466aaffb49bee808bb4e"
}, {
"type" : "WEB",
"url" : "https://github.com/tlsfuzzer/python-ecdsa/commit/b0ea52bb3aa9a16c9a4a91fdc0041edbfed10b31"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14859"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-8qxj-f9rh-9fg2"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ecdsa/PYSEC-2020-163.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/warner/python-ecdsa"
}, {
"type" : "WEB",
"url" : "https://github.com/warner/python-ecdsa/releases/tag/python-ecdsa-0.13.3"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/ecdsa/0.13.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-04-01T15:40:54Z",
"nvd_published_at" : "2020-01-02T15:15:00Z"
}
}