Live threats

All CVEs / Pyasn1

CVE-2026-59886Pyasn1

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jul 14, 2026
Updated
Jul 21, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyasn1.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pyasn1 < 0.6.4 0.6.4 pip install "pyasn1>=0.6.4"
PyPI pyasn1 < 0.6.4 0.6.4 pip install "pyasn1>=0.6.4"

Per OSV / GitHub Advisories (GHSA-hm4w-wwcw-mr6r, PYSEC-2026-3457). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pyasn1pyasn1< 0.6.4

Official advisories

Also: Red Hat (+26), SUSE (+4)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.