CVE-2026-33936python-ecdsa: Denial of Service via improper DER length validation in crafted private keys
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-ecdsa | Fix pending | UBUNTU-CVE-2026-33936 | |
| Ubuntu 26.04 | python-ecdsa | Under investigation | UBUNTU-CVE-2026-33936 | |
| Ubuntu 25.10 | python-ecdsa | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-33936 | |
| Ubuntu 24.04 | python-ecdsa | Under investigation | UBUNTU-CVE-2026-33936 | |
| Ubuntu 22.04 | python-ecdsa | Under investigation | UBUNTU-CVE-2026-33936 | |
| Ubuntu 20.04 | python-ecdsa | Fix pending | UBUNTU-CVE-2026-33936 | |
| Ubuntu 18.04 | python-ecdsa | Fix pending | UBUNTU-CVE-2026-33936 | |
| Ubuntu 16.04 | python-ecdsa | Fix pending | UBUNTU-CVE-2026-33936 | |
| Debian 14 | python-ecdsa | Fixed | 0.19.2-1 | DEBIAN-CVE-2026-33936 |
| Debian 13 | python-ecdsa | Fixed | 0.19.1-1+deb13u1 | DEBIAN-CVE-2026-33936 |
| Debian 12 | python-ecdsa | Fix pending | DEBIAN-CVE-2026-33936 | |
| PyPI library | ecdsa | Fixed | 0.19.2 | PYSEC-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.
- tlsfuzzer python-ecdsa: affected: < 0.19.2
References
- https://github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-9f5j-8jwj-x28g
- https://github.com/tlsfuzzer/python-ecdsa/commit/bd66899550d7185939bf27b75713a2ac9325a9d3
- https://github.com/tlsfuzzer/python-ecdsa/releases/tag/python-ecdsa-0.19.2
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.