Technical impact
The pyasn1 library for Python contains an implementation flaw in versions prior to 0.6.5. When decoding constructed string or indefinite‑length ANY types, the library repeatedly concatenates each fragment onto a growing byte buffer. An attacker can craft BER or CER data with a large number of constructed OCTET STRING or character‑string fragments, causing the decoder to perform quadratic work and exhaust CPU resources. This vulnerability does not compromise confidentiality or integrity; it merely consumes processing time, potentially rendering services unavailable.
Affected Systems
The vulnerability affects the pyasn1 library from any release before 0.6.5, including early 0.6.x versions. Applications that import pyasn1 and process ASN.1 encoded data—especially external or network data—are susceptible. Updating to pyasn1 0.6.5 or later resolves the issue as the new release eliminates the inefficient concatenation logic.
Risk and Exploitability
The CVSS score of 7.5 classifies this flaw as high severity. The EPSS score is < 1%, indicating very low likelihood of exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The exploit requires an attacker to supply crafted ASN.1 data to a process that uses pyasn1. While the attack surface is limited to software that directly decodes external ASN.1 payloads, an application exposed over a network could be targeted remotely. The impact is purely denial-of-service through CPU exhaustion; no data compromise occurs.
Github GHSA
Ubuntu USN