Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ecdsa
  4. ›
  5. CVE-2026-33936

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

March 27, 2026 (updated March 30, 2026)

An issue in the low-level DER parsing functions can cause unexpected exceptions to be raised from the public API functions.

  1. 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.

  2. 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.

References

  • github.com/advisories/GHSA-9f5j-8jwj-x28g
  • github.com/tlsfuzzer/python-ecdsa
  • github.com/tlsfuzzer/python-ecdsa/commit/bd66899550d7185939bf27b75713a2ac9325a9d3
  • github.com/tlsfuzzer/python-ecdsa/releases/tag/python-ecdsa-0.19.2
  • github.com/tlsfuzzer/python-ecdsa/security/advisories/GHSA-9f5j-8jwj-x28g
  • nvd.nist.gov/vuln/detail/CVE-2026-33936

Code Behaviors & Features

Detect and mitigate CVE-2026-33936 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.19.2

Fixed versions

  • 0.19.2

Solution

Upgrade to version 0.19.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-130: Improper Handling of Length Parameter Inconsistency
  • CWE-20: Improper Input Validation

Source file

pypi/ecdsa/CVE-2026-33936.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:17 +0000.