CVE Catalog

CVE-2026-59886

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.34%

26th percentile - higher than 26% of all known CVEs

Summary

In pyasn1 prior to 0.6.4, the univ.Real type converts its mantissa, base, and exponent to a Python float using exact big-integer exponentiation. A short BER/CER/DER encoded REAL value can carry a very large exponent, causing excessive CPU and memory consumption and application hangs when prettyPrint(), str(), comparison, arithmetic, int(), or explicit float() is called on untrusted ASN.1 data.

Risk Assessment

An attacker can send a crafted REAL value that, after decoding and processing (e.g., printing, logging, or comparing), leads to resource exhaustion and denial of service (DoS).

Recommendation

Immediately upgrade pyasn1 to version 0.6.4 or later. If upgrading is not possible, avoid calling prettyPrint(), str(), comparisons, arithmetic, int(), or float() on untrusted Real objects.

Other vulnerabilities in pyasn1

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS