CVE catalog

CVE-2026-59886

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,

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.62% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpyasn1sid0.6.4-1fixed
Debianpyasn1forky0.6.4-1fixed
Debianpyasn1trixie0.6.1-1+deb13u3fixed
Debianpyasn1trixie-security0.6.1-1+deb13u2vulnerable
Debianpyasn1bookworm0.4.8-3+deb12u2vulnerable
Debianpyasn1bookworm-security0.4.8-3+deb12u3fixed
Cpepyasn1Not reportedNot reportedvulnerable
Pippyasn1Not reported0.6.4fixed
PyPIpyasn1Not reported0.6.4fixed
Ubuntupyasn1noble0.4.8-4ubuntu0.3fixed
Ubuntupython-pyasn1-docnoble0.4.8-4ubuntu0.3fixed
Ubuntupython3-pyasn1noble0.4.8-4ubuntu0.3fixed
Ubuntupyasn1pro0.4.2-3vulnerable
Ubuntupyasn1pro0.4.2-3build1vulnerable
Ubuntupyasn1pro0.4.2-3ubuntu0.20.04.1~esm1vulnerable
Ubuntupyasn122.040.4.8-1vulnerable
Ubuntupyasn122.040.4.8-1ubuntu0.1vulnerable
Ubuntupyasn122.040.4.8-1ubuntu0.2vulnerable
Ubuntupyasn122.040.4.8-1ubuntu0.3fixed
Ubuntupyasn124.040.4.8-4vulnerable
Ubuntupyasn124.040.4.8-4ubuntu0.1vulnerable
Ubuntupyasn124.040.4.8-4ubuntu0.2vulnerable
Ubuntupyasn124.040.4.8-4ubuntu0.3fixed
Ubuntupyasn126.040.6.1-1vulnerable
Ubuntupyasn126.040.6.1-1build1vulnerable
Ubuntupyasn126.040.6.2-1vulnerable
Ubuntupyasn126.040.6.3-1vulnerable
Ubuntupyasn126.040.6.3-1ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpyasn1sourcesid0.6.4-1not yet assignedNot reported[1142388]
Debianpyasn1sourceforky0.6.4-1not yet assignedNot reported[1142388]
Debianpyasn1sourcetrixie0.6.1-1+deb13u3not yet assignedNot reported[1142388]
Debianpyasn1sourcebookworm0.4.8-3+deb12u3not yet assignedNot reported[1142388]
Pippyasn1pipNot reported0.6.4Not reportedNot reportedNot reported
PyPIpyasn1PyPINot reported0.6.4Not reportedGHSA-HM4W-WWCW-MR6RNot reported
Ubuntupyasn1debnoble0.4.8-4ubuntu0.3Not reportedNot reportedNot reported
Ubuntupython-pyasn1-docdebnoble0.4.8-4ubuntu0.3Not reportedNot reportedNot reported
Ubuntupython3-pyasn1debnoble0.4.8-4ubuntu0.3Not reportedNot reportedNot reported
Ubuntupyasn1deb22.040.4.8-1ubuntu0.3Not reportedUBUNTU-CVE-2026-59886Not reported
Ubuntupyasn1deb24.040.4.8-4ubuntu0.3Not reportedUBUNTU-CVE-2026-59886Not reported
Ubuntupyasn1deb26.040.6.3-1ubuntu0.1Not reportedUBUNTU-CVE-2026-59886Not reported

[Debian bug #1142388]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-pyasn1]Affected

    Source package: [pyasn1]

    Details (4)
    • 0.4.8-3+deb12u2 · all · bookworm

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm-security

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm-security

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

  • Source package: [pyasn1]

    Details (4)
    • 0.4.8-3+deb12u2 · all · bookworm

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm-security

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

    • 0.4.8-3+deb12u2 · all · bookworm-security

      Affected · Fixed: 0.4.8-3+deb12u3

      nvd · pyasn1 · debian · bookworm; nvd · pyasn1 · debian · 12

[Debian 13 (Trixie)]

  • [python3-pyasn1]Affected

    Source package: [pyasn1]

    Details (6)
    • 0.6.1-1+deb13u2 · all · trixie

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.4-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.4-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie-security

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie-security

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

  • Source package: [pyasn1]

    Details (6)
    • 0.6.1-1+deb13u2 · all · trixie

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.4-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.4-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie-security

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

    • 0.6.1-1+deb13u2 · all · trixie-security

      Affected · Fixed: 0.6.1-1+deb13u3

      nvd · pyasn1 · debian · 13

Observed:

References