Malleable Signature Vulnerability in python-ecdsa: CVE-2019-14859

python-ecdsa Updated 02 Oct 2025

Summary

02/01/2020
N/A
Yes i
Critical
9.1

CVE-2019-14859: A flaw was found in all python-ecdsa versions before 0.13.3, where it did not correctly verify whether signatures used DER encoding. Affects python-ecdsa versions < 0.13.3-1. Fixed in 0.13.3-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-ecdsa is a Python library that provides Elliptic Curve Digital Signature Algorithm (ECDSA) functionality. It is widely used for secure transactions and cryptographic operations. The library's primary function is to generate and verify digital signatures, ensuring the integrity and authenticity of messages. However, prior to version 0.13.3, the library had a critical vulnerability that allowed for the acceptance of malformed signatures due to improper verification of DER encoding.

Vulnerability Detail

The vulnerability identified as CVE-2019-14859 arises from a flaw in all versions of python-ecdsa prior to 0.13.3. The library failed to correctly verify whether signatures were using DER encoding. This oversight allowed an attacker to exploit the system by crafting a malformed signature that could be accepted as valid, leading to malleable signatures. Such signatures could be manipulated to create false transactions, posing significant risks to the integrity of systems relying on this library for secure communications.

How To Fix

Minimum fixed version

0.13.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-ecdsa

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If an immediate upgrade is not feasible, consider implementing additional validation checks for signatures to ensure they conform to expected formats. However, this is not a substitute for upgrading the library.

Conclusion

CVE-2019-14859 is a significant vulnerability in the python-ecdsa library that can lead to serious security risks if not addressed. Users are strongly encouraged to upgrade to version 0.13.3 or later to mitigate these risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for python-ecdsa →

Share this vulnerability

FAQ

CVE-2019-14859 is a vulnerability in the python-ecdsa library that allows for the acceptance of malformed signatures due to improper verification of DER encoding.

The primary risk is that an attacker could create false transactions by exploiting malleable signatures, undermining the integrity of systems that rely on the library for secure transactions.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for CVE-2019-14859 is 9.1, indicating a high severity level.

You can upgrade python-ecdsa by running 'pip install --upgrade python-ecdsa' in your terminal or by using your package manager for Debian-based systems.

Related vulnerabilities

Recent vulnerabilities recorded for python-ecdsa.

How To Fix

Minimum fixed version

0.13.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-ecdsa

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback