CVEfocus › CVE database › CVE-2026-33936

CVE-2026-33936python-ecdsa: Denial of Service via improper DER length validation in crafted private keys

CVSS 5.3 MediumEPSS 0.6% (higher than 43% of CVEs)Published 2026-03-27Updated 2026-04-01Assigner: GitHub_M

The `ecdsa` PyPI package is a pure Python implementation of ECC (Elliptic Curve Cryptography) with support for ECDSA (Elliptic Curve Digital Signature Algorithm), EdDSA (Edwards-curve Digital Signature Algorithm) and ECDH (Elliptic Curve Diffie-Hellman). Prior to version 0.19.2, an issue in the low-level DER parsing functions can cause unexpected exceptions to be raised from the public API functions. `ecdsa.der.remove_octet_string()` accepts truncated DER where the encoded length exceeds the available buffer. For example, an OCTET STRING that declares a length of 4096 bytes but provides only 3 bytes is parsed successfully instead of being rejected. Because of that, a crafted DER input can cause `SigningKey.from_der()` to raise an internal exception (`IndexError: index out of bounds on dimension 1`) rather than cleanly rejecting malformed DER (e.g., raising `UnexpectedDER` or `ValueError`). Applications that parse untrusted DER private keys may crash if they do not handle unexpected exceptions, resulting in a denial of service. Version 0.19.2 patches the issue.

CWE-130CWE-20

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
5Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10python-ecdsaFix pendingUBUNTU-CVE-2026-33936
Ubuntu 26.04python-ecdsaUnder investigationUBUNTU-CVE-2026-33936
Ubuntu 25.10python-ecdsaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-33936
Ubuntu 24.04python-ecdsaUnder investigationUBUNTU-CVE-2026-33936
Ubuntu 22.04python-ecdsaUnder investigationUBUNTU-CVE-2026-33936
Ubuntu 20.04python-ecdsaFix pendingUBUNTU-CVE-2026-33936
Ubuntu 18.04python-ecdsaFix pendingUBUNTU-CVE-2026-33936
Ubuntu 16.04python-ecdsaFix pendingUBUNTU-CVE-2026-33936
Debian 14python-ecdsaFixed0.19.2-1DEBIAN-CVE-2026-33936
Debian 13python-ecdsaFixed0.19.1-1+deb13u1DEBIAN-CVE-2026-33936
Debian 12python-ecdsaFix pendingDEBIAN-CVE-2026-33936
PyPI libraryecdsaFixed0.19.2PYSEC-2026-2467

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.