CVE-2026-33936: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-33936 is a Denial of Service vulnerability in the ecdsa PyPI package (a pure Python implementation of ECC/ECDSA/EdDSA/ECDH) caused by improper DER length validation in low-level parsing functions. Discovered and reported by Mohamed Abdelaal (@0xmrma), it was disclosed on March 26, 2026, and affects all versions prior to 0.19.2. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) (Github Advisory). Microsoft also tracks this vulnerability in its security guidance (Microsoft).

Technical details

The root cause is improper input validation (CWE-20) combined with improper handling of length parameter inconsistency (CWE-130) in the DER parsing helper functions remove_octet_string(), remove_constructed(), and remove_implicit(). These functions fail to verify that the declared DER length field does not exceed the actual available buffer size — for example, an OCTET STRING declaring a length of 4096 bytes but providing only 3 bytes is accepted rather than rejected. This allows a crafted DER input to propagate through to SigningKey.from_der(), which then raises an internal IndexError: index out of bounds on dimension 1 instead of a clean UnexpectedDER or ValueError. The fix, applied in commit bd66899, adds a bounds check (if length > len(string) - 1 - llen: raise UnexpectedDER(...)) to each affected function (Github Advisory, Patch Commit).

Impact

The primary impact is a denial of service: applications that parse untrusted DER-encoded private keys using the ecdsa library may crash if they do not explicitly catch unexpected exception types such as IndexError. There is no confidentiality or integrity impact — the vulnerability cannot be used to extract key material or modify data. Any networked service that accepts DER-formatted cryptographic keys from untrusted sources (e.g., TLS implementations, key management APIs) is at risk of process crashes triggered by a single malformed input (Github Advisory).

Exploitability

Public proof-of-concept code (poc_truncated_der_octet.py and poc_signingkey_from_der_indexerror.py) is available in the official security advisory and demonstrates reliable crash reproduction (Github Advisory). An additional PoC repository exists at https://github.com/0xmrma/CVE-2026-33936, though it contains only documentation rather than runnable code. The EPSS score is approximately 0.047% (15th percentile), indicating low probability of active exploitation in the near term. There is no evidence of in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA KEV catalog.

Exploitation steps

  1. Identify target: Find a networked application that uses the ecdsa Python package (versions < 0.19.2) and accepts DER-encoded private keys from user-supplied or external input (e.g., a key upload endpoint or TLS handshake handler).
  2. Craft malformed DER input: Construct a byte sequence with an OCTET STRING tag (0x04) followed by a long-form length field declaring a large value (e.g., 0x82 0x10 0x00 = 4096 bytes) but providing only a few actual bytes of body data (e.g., b"\x04\x82\x10\x00" + b"ABC").
  3. Submit crafted input: Send the malformed DER bytes to the target application's key parsing interface, triggering a call to ecdsa.der.remove_octet_string() or a higher-level function such as SigningKey.from_der().
  4. Trigger crash: The library accepts the truncated DER without raising UnexpectedDER, propagating the malformed state until an IndexError: index out of bounds on dimension 1 is raised internally, crashing any application that does not catch this unexpected exception type.
  5. Repeat for sustained DoS: Since the crash is deterministic and requires no authentication or prior state, the attacker can repeatedly send crafted inputs to keep the service unavailable (Github Advisory).

Indicators of compromise

  • Logs: Python tracebacks containing IndexError: index out of bounds on dimension 1 originating from ecdsa/der.py in application error logs; repeated exceptions from SigningKey.from_der() with no corresponding UnexpectedDER or ValueError.
  • Network: Repeated inbound requests submitting DER-formatted data (e.g., binary payloads starting with \x04\x82) to key parsing endpoints, particularly from a single source IP or with high frequency.
  • Process: Unexpected crashes or restarts of Python processes running services that use the ecdsa library, especially correlated with receipt of external DER key material.

Mitigation and workarounds

Upgrade the ecdsa PyPI package to version 0.19.2 or later, which adds buffer bounds checks to remove_octet_string(), remove_constructed(), and remove_implicit() (Release Notes, Patch Commit). As a short-term workaround, wrap all calls to SigningKey.from_der() and related DER parsing functions in broad exception handlers that catch IndexError and other unexpected exceptions in addition to UnexpectedDER and ValueError. Where possible, restrict DER key parsing to trusted, validated sources to reduce attack surface. SUSE Linux has also issued security updates for the python-ecdsa package (OpenSUSE Advisory).

Community reactions

The vulnerability was credited to researcher Mohamed Abdelaal (@0xmrma), who submitted the report and provided detailed PoC scripts included in the official advisory (Github Advisory). The fix was merged promptly by maintainer tomato42 on the same day as disclosure. SUSE issued downstream security advisories, and Tenable published Nessus detection plugins (IDs 304163, 307426) shortly after disclosure. Community reaction has been measured given the moderate severity and limited exploitation potential.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-ecdsa

Affected

sid

python-ecdsa: 0.19.2-1

Fixed

trixie

python-ecdsa: 0.19.1-1+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

python-ecdsa

Unknown

devel

python-ecdsa

Unknown

focal (esm-apps)

python-ecdsa

Unknown

jammy

python-ecdsa

Unknown

jammy (esm-apps)

python-ecdsa

Unknown

noble

python-ecdsa

Unknown

noble (esm-apps)

python-ecdsa

Unknown

resolute

python-ecdsa

Unknown

RHEL / CentOS

Unknown

Alpine

Fixed

edge

py3-ecdsa: 0.19.2-r0

Fixed

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-v2f8-6655-7grjCRITICAL10
  • Python logoPython
  • vibe-trading-ai
NoYesOct 02, 2026
CVE-2026-105782HIGH7.5
  • Python logoPython
  • scrapy
NoYesOct 06, 2026
GHSA-v853-p72q-4cfwHIGH7.5
  • Python logoPython
  • quart
NoYesOct 05, 2026
CVE-2026-105751MEDIUM6.9
  • Python logoPython
  • docling
NoYesOct 05, 2026
CVE-2026-105750MEDIUM5.9
  • Python logoPython
  • docling
NoYesOct 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management