Skip to main content
← All vulnerabilities
CVE-2026-59886GHSA-HM4W-WWCW-MR6RPYSEC-2026-3457

pyasn1: Uncontrolled resource consumption when converting decoded REAL values

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.6.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • pyasn1 pyasn1

    fixed in 0.6.4

  • pyasn1PyPI

    fixed in 0.6.4

References 3

GitHub · pyasn1/pyasn1