CVE-2026-59884 Details
Description
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.
A denial-of-service vulnerability has been identified in the pyasn1 library, specifically in versions prior to 0.6.4. The issue arises in the BER decoder, which is also used by the CER and DER codecs. The vulnerability allows a crafted input to exploit unbounded long-form tag IDs, causing the decoder to generate excessively large integers. This exploitation leads to quadratic CPU consumption, with approximately 1 MB of input causing over a minute of CPU time. Additionally, in Python 3.11 and later, the oversized tag IDs can trigger unhandled ValueError exceptions during error message formatting, bypassing standard error handling protocols. Any application that decodes untrusted BER, CER, or DER input is susceptible to this vulnerability.
Users can upgrade to pyasn1 version 0.6.4, which limits long-form tag IDs to 20 octets and addresses the associated denial-of-service vulnerability. Instructions for downloading this version are available on the pyasn1 GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pyasn1 pyasn1 | < 0.6.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |