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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T15:56:01.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-9f5j-8jwj-x28g, PYSEC-2026-2467
- Weaknesses: CWE-20, CWE-130
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tlsfuzzer python-ecdsa: < 0.19.2
- ecdsa (PyPI): before 0.19.2
- tlsfuzzer ecdsa: before 0.19.2

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-9f5j-8jwj-x28g> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/tlsfuzzer/python-ecdsa/commit/bd66899550d7185939bf27b75713a2ac9325a9d3> (patch, web)
- <https://github.com/tlsfuzzer/python-ecdsa/releases/tag/python-ecdsa-0.19.2> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33936> (advisory)
- <https://github.com/tlsfuzzer/python-ecdsa> (package)
- <https://pypi.org/project/ecdsa> (package)
- <https://github.com/advisories/GHSA-9f5j-8jwj-x28g> (advisory)

## Sources

- CVE List: [CVE-2026-33936](https://www.cve.org/CVERecord?id=CVE-2026-33936), CVE Terms of Use, modified 2026-04-01
- GitHub Advisory Database: [GHSA-9f5j-8jwj-x28g](https://github.com/advisories/GHSA-9f5j-8jwj-x28g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33936](https://nvd.nist.gov/vuln/detail/CVE-2026-33936), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2467](https://osv.dev/vulnerability/PYSEC-2026-2467), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-33936 · Whole record: https://cve.day/CVE-2026-33936.json · Rebuilt by cve.day 2026-11-25T22:59:17.462Z
