CVE-2026-59885 Details
Description
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. 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, CER, and DER decoders, which handle OBJECT IDENTIFIER and RELATIVE-OID values with quadratic time complexity relative to the number of arcs. This means that a small, crafted payload containing an OID with many arcs can consume excessive CPU time with each decode() call, potentially disrupting applications that process untrusted ASN.1 data, such as certificates, LDAP, SNMP, and Kerberos. The encoders exhibit the same quadratic behavior when re-encoding previously decoded, attacker-supplied values.
Users can upgrade to pyasn1 version 0.6.4, which addresses the vulnerability by optimizing the arc processing in both decoders and encoders to run in linear time.
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 14, 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] |
| CWE-407 | Inefficient Algorithmic Complexity | [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 14, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |