
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59886 is a Denial of Service vulnerability in the pyasn1 Python library caused by uncontrolled resource consumption when converting decoded ASN.1 REAL values to Python floats. It affects all pyasn1 versions up to and including 0.6.3, and was fixed in version 0.6.4. The vulnerability was published on July 9, 2026 (GitHub advisory) and formally disclosed via NVD on July 14, 2026. It carries a CVSS v3.1 base score of 7.5 (High) (Github Advisory, Red Hat).
The root cause is in pyasn1.type.univ.Real.__float__(), which converted the (mantissa, base, exponent) tuple to a Python float using exact big-integer exponentiation (mantissa * pow(base, exponent)), classified as CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). A BER, CER, or DER encoded REAL value only a few bytes long can encode an astronomically large exponent, causing the exponentiation to attempt to materialize an enormous integer in memory. Any subsequent operation that triggers float conversion — including prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call — will consume excessive CPU and memory, hanging the process. Notably, decoding alone does not trigger the issue; the vulnerability is only activated when the decoded object is subsequently processed (Github Advisory, Patch Commit).
Successful exploitation results in a Denial of Service: the affected application hangs or crashes due to exhaustion of CPU and memory resources. There is no confidentiality or integrity impact — the vulnerability is purely an availability issue. Any application that decodes untrusted ASN.1 data containing REAL values and then prints, logs, compares, or performs arithmetic on those decoded objects is at risk, which includes a broad range of network services, PKI/certificate processing tools, SNMP implementations, and other systems relying on pyasn1 (Github Advisory, Red Hat Bugzilla).
bytes((9, 7, 227, 4, 1, 35, 69, 103, 1)) for a base-2 REAL with a large exponent).univ.Real object. When the application subsequently calls prettyPrint(), str(), performs a comparison, or any arithmetic on the object, __float__() is invoked, triggering the unbounded big-integer exponentiation./var/log/syslog, dmesg) referencing the affected Python process.pyasn1.type.univ or Real.__float__ in stack traces.The primary remediation is to upgrade pyasn1 to version 0.6.4 or later, which fixes the vulnerability by using math.ldexp() for base-2 conversions and raising OverflowError for base-10 values with exponents beyond float range, without constructing huge intermediate integers (pyasn1 Release). If immediate patching is not possible, the recommended workaround is to avoid converting, printing, or comparing decoded Real objects from untrusted sources — instead, inspect the raw (mantissa, base, exponent) tuple directly without triggering float conversion (Github Advisory). Additionally, implementing input validation to reject ASN.1 REAL values with unusually large exponents before any float conversion is performed can reduce exposure.
Red Hat has tracked this vulnerability in their Bugzilla system (Bug 2500041) with a high severity rating, and it appears in their security CVE advisory page, indicating it affects Red Hat-distributed packages that depend on pyasn1. The Yocto Project security mailing list also discussed the issue, suggesting broad awareness across embedded Linux ecosystems. No notable independent researcher commentary or significant social media discussion has been identified beyond standard CVE aggregator coverage.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."