CVE-2026-59885pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows…
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. This issue is fixed in version 0.6.4.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | pyasn1 | Fixed | 0.6.3-1ubuntu0.1 | UBUNTU-CVE-2026-59885 |
| Ubuntu 24.04 | pyasn1 | Fixed | 0.4.8-4ubuntu0.3 | UBUNTU-CVE-2026-59885 |
| Ubuntu 22.04 | pyasn1 | Fixed | 0.4.8-1ubuntu0.3 | UBUNTU-CVE-2026-59885 |
| Ubuntu 20.04 | pyasn1 | Fix pending | 0.4.2-3ubuntu0.20.04.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-59885 |
| Ubuntu 18.04 | pyasn1 | Fix pending | 0.4.2-3ubuntu0.18.04.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-59885 |
| Ubuntu 16.04 | pyasn1 | Fix pending | 0.1.9-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-59885 |
| Ubuntu 14.04 | pyasn1 | Fix pending | 0.1.7-1ubuntu2.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-59885 |
| Debian 14 | pyasn1 | Fixed | 0.6.4-1 | DEBIAN-CVE-2026-59885 |
| Debian 13 | pyasn1 | Fixed | 0.6.1-1+deb13u3 | DEBIAN-CVE-2026-59885 |
| Debian 12 | pyasn1 | Fixed | 0.4.8-3+deb12u3 | DEBIAN-CVE-2026-59885 |
| Red Hat Enterprise Linux 10 | python-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-pyasn1-modules | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-pyasn1-modules | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-pyasn1-modules | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | python-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | python2-pyasn1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | python2-pyasn1-modules | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-aliyun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-gcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana-scaleout | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | sap-cluster-connector | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | python-pyasn1 | Will not fix Out of support scope | ||
| PyPI library | pyasn1 | Fixed | 0.6.4 | PYSEC-2026-3456 |
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.
- pyasn1: affected: < 0.6.4
References
- https://github.com/pyasn1/pyasn1/security/advisories/GHSA-8ppf-4f7h-5ppj
- https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9
- https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4
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.