CVE-2026-59886 Details
Description
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. This issue is fixed in version 0.6.4.
A denial-of-service vulnerability has been identified in the pyasn1 library, specifically in the univ.Real type, prior to version 0.6.4. The issue arises when the Real type's mantissa, base, and exponent values are converted to a Python float using exact big-integer exponentiation. This conversion can lead to excessive CPU and memory usage, causing applications to hang. The vulnerability is triggered by decoding untrusted ASN.1 data and then printing, logging, or comparing the decoded Real objects.
Users can upgrade to pyasn1 version 0.6.4, which addresses the vulnerability by changing how binary and decimal values are converted to floats. For binary values, the library now uses a method that avoids creating large intermediate integers, and for decimal values with exponents beyond the range of a float, it raises an error instead of causing a denial-of-service condition. Instructions for downloading the updated version are available on the pyasn1 GitHub release 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] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [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] |