Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33936: CWE-20: Improper Input Validation in tlsfuzzer python-ecdsa

0
Medium
VulnerabilityCVE-2026-33936cvecve-2026-33936cwe-20cwe-130
Published: Fri Mar 27 2026 (03/27/2026, 22:08:22 UTC)
Source: CVE Database V5
Vendor/Project: tlsfuzzer
Product: python-ecdsa

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 22:37:29 UTC

Technical Analysis

The python-ecdsa package is a pure Python implementation of elliptic curve cryptography algorithms including ECDSA, EdDSA, and ECDH. Prior to version 0.19.2, a vulnerability exists in the low-level DER parsing routines, specifically in the function ecdsa.der.remove_octet_string(). This function improperly handles DER-encoded OCTET STRINGs where the declared length field exceeds the actual data length available. For example, if an OCTET STRING declares a length of 4096 bytes but only 3 bytes are provided, the parser incorrectly accepts the input instead of rejecting it as malformed. When such crafted DER data is processed by SigningKey.from_der(), it triggers an internal exception (IndexError: index out of bounds on dimension 1) rather than a controlled error like UnexpectedDER or ValueError. This improper input validation (CWE-20) and buffer length mismanagement (CWE-130) can cause applications that parse untrusted DER private keys to crash unexpectedly. Since the exception is not gracefully handled by the library, this leads to a denial of service condition. The vulnerability has a CVSS 3.1 base score of 5.3 (medium severity), with network attack vector, low attack complexity, no privileges required, and no user interaction needed. No known exploits are currently reported in the wild. The issue is fixed in python-ecdsa version 0.19.2, which properly validates DER lengths and rejects malformed inputs cleanly.

Potential Impact

This vulnerability primarily impacts the availability of applications relying on python-ecdsa to parse DER-encoded private keys, especially when processing untrusted or attacker-controlled inputs. An attacker can cause denial of service by supplying malformed DER data that triggers unhandled exceptions and crashes the application. While confidentiality and integrity are not directly affected, the disruption of cryptographic operations can impact services relying on digital signatures or key exchanges, potentially halting secure communications or authentication processes. Systems that do not implement robust exception handling around the python-ecdsa library are particularly vulnerable. This can affect servers, cryptographic tools, or any software components that accept DER-encoded keys from external sources. Given the network attack vector and no requirement for authentication, the vulnerability could be exploited remotely, increasing the risk of widespread service interruptions.

Mitigation Recommendations

The primary mitigation is to upgrade the python-ecdsa package to version 0.19.2 or later, where the DER parsing functions properly validate input lengths and reject malformed data. Additionally, developers should implement robust exception handling around calls to SigningKey.from_der() and other DER parsing functions to gracefully handle unexpected errors without crashing the application. Input validation should be enforced at higher layers to reject suspicious or malformed DER inputs before they reach the cryptographic library. For critical systems, consider implementing runtime monitoring to detect abnormal crashes or exceptions related to cryptographic operations. If upgrading immediately is not feasible, applying patches or backporting the fix to the affected versions is recommended. Finally, restrict exposure of services that accept DER-encoded keys from untrusted sources and apply network-level protections such as rate limiting and input filtering to reduce attack surface.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-24T19:50:52.103Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c702cd2b68dbd88e2edf86

Added to database: 3/27/2026, 10:21:01 PM

Last enriched: 3/27/2026, 10:37:29 PM

Last updated: 3/28/2026, 4:49:14 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses