CVEfocus › CVE database › CVE-2026-59884

CVE-2026-59884pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs

CVSS 7.5 HighEPSS 0.6% (higher than 44% of CVEs)Published 2026-07-14Updated 2026-07-15Assigner: GitHub_M

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.

CWE-400

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
23Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04pyasn1Fixed0.6.3-1ubuntu0.1UBUNTU-CVE-2026-59884
Ubuntu 24.04pyasn1Fixed0.4.8-4ubuntu0.3UBUNTU-CVE-2026-59884
Ubuntu 22.04pyasn1Fixed0.4.8-1ubuntu0.3UBUNTU-CVE-2026-59884
Ubuntu 20.04pyasn1Fix pending0.4.2-3ubuntu0.20.04.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2026-59884
Ubuntu 18.04pyasn1Fix pending0.4.2-3ubuntu0.18.04.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2026-59884
Ubuntu 16.04pyasn1Fix pending0.1.9-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2026-59884
Ubuntu 14.04pyasn1Fix pending0.1.7-1ubuntu2.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-59884
Debian 14pyasn1Fixed0.6.4-1DEBIAN-CVE-2026-59884
Debian 13pyasn1Fixed0.6.1-1+deb13u3DEBIAN-CVE-2026-59884
Debian 12pyasn1Fixed0.4.8-3+deb12u3DEBIAN-CVE-2026-59884
Red Hat Enterprise Linux 10python-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 10python3-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 10python3-pyasn1-modulesFix pending
Fix deferred
Red Hat Enterprise Linux 9python-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 9python3-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 9python3-pyasn1-modulesFix pending
Fix deferred
Red Hat Enterprise Linux 8python-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 8python3-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 8python3-pyasn1-modulesFix pending
Fix deferred
Red Hat Enterprise Linux 7python-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 7python2-pyasn1Fix pending
Fix deferred
Red Hat Enterprise Linux 7python2-pyasn1-modulesFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agentsFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-aliyunFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-gcpFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sapFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sap-hanaFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sap-hana-scaleoutFix pending
Fix deferred
Red Hat Enterprise Linux 7sap-cluster-connectorFix pending
Fix deferred
Red Hat Enterprise Linux 6python-pyasn1Will not fix
Out of support scope
PyPI librarypyasn1Fixed0.6.4PYSEC-2026-3455

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.