CVE-2026-59884Pyasn1
High 7.5 No auth needed
Follow: this CVE · Pyasn1 · Pyasn1 We alert you by email or Slack (account required).
- 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
- 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 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.
What to do
- Apply the vendor's security update for Pyasn1.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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-m4p7-r5rc-7g4j, PYSEC-2026-3455). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pyasn1 | pyasn1 | < 0.6.4 |
Official advisories
- Security update for python-pyasn1 · SUSE · SUSE-SU-2026:23167-1 · Aug 6, 2026 High
- Security update for python-pyasn1 · SUSE · SUSE-SU-2026:23006-1 · Jul 28, 2026 High
- Security update for python-pyasn1 · SUSE · SUSE-SU-2026:3238-1 · Jul 24, 2026 High
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:40236 · Jul 17, 2026 High
Also: 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.
- github.com Patch
- github.com Release Notes
- github.com Third Party Advisory