pyasn1: Quadratic CPU consumption in constructed BIT STRING decoding
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pyasn1 | pyasn1 | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pyasn1 | Pyasn1 |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-2qm8-x737-gmw5 | pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding |
Ubuntu USN |
USN-9011-1 | pyasn1 vulnerabilities |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.425% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-770 | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pyasn1
Pyasn1 pyasn1 |
|
| Vendors & Products |
Pyasn1
Pyasn1 pyasn1 |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed BIT STRING decoding repeatedly shifts and copies the complete bit value accumulated from earlier fragments. Attacker-controlled BER or CER input contains many constructed BIT STRING fragments; schema-driven DER also accepts a definite-length constructed BIT STRING. BitStringPayloadDecoder repeatedly calls BitString.fromOctetString with the prior bitString as prepend, shifting an ever-growing SizedInteger for each fragment and causing quadratic work. Large fragmented values can exhaust CPU during decode() without requiring later conversion or formatting. This issue is fixed in version 0.6.5. | |
| Title | pyasn1: Quadratic CPU consumption in constructed BIT STRING decoding | |
| Weaknesses | CWE-407 | |
| References |
| |
| Metrics |
cvssV3_1
|