CVE-2026-59884

HIGH CVSS 3.1: 7.5 EPSS 0.35%
Updated Jul 21, 2026
Pyasn1
Parameter Value
CVSS 7.5 (HIGH)
Affected Versions before 0.6.4
Fixed In 0.6.4
Type CWE-400 (Uncontrolled Resource Consumption)
Vendor Pyasn1
Public PoC No

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected.

This issue is fixed in version 0.6.4.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Pyasn1 Pyasn1
cpe:2.3:a:pyasn1:pyasn1:*:*:*:*:*:python:*:*
— 0.6.4