python-ecdsa: Denial of Service via improper DER length validation in crafted private keys
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| tlsfuzzer | python-ecdsa | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Tlsfuzzer | Ecdsa |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-9f5j-8jwj-x28g | python-ecdsa: Denial of Service via improper DER length validation in crafted private keys |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.495% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:tlsfuzzer:ecdsa:*:*:*:*:*:python:*:* | |
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Tlsfuzzer
Tlsfuzzer ecdsa |
|
| Vendors & Products |
Tlsfuzzer
Tlsfuzzer ecdsa |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | python-ecdsa: Denial of Service via improper DER length validation in crafted private keys | |
| Weaknesses | CWE-130 CWE-20 |
|
| References |
| |
| Metrics |
cvssV3_1
|