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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-07-14T16:41:10.277Z
- Modified: 2026-09-10T03:50:52.562Z
- Also known as: GHSA-m4p7-r5rc-7g4j, PYSEC-2026-3455
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pyasn1 pyasn1: < 0.6.4; before 0.6.4
- pyasn1 (PyPI): before 0.6.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pyasn1/pyasn1/security/advisories/GHSA-m4p7-r5rc-7g4j> (advisory, third-party-advisory, web)
- <https://github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5> (fix, patch, web)
- <https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59884> (advisory)
- <https://github.com/pyasn1/pyasn1> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyasn1/PYSEC-2026-3455.yaml> (web)

## Sources

- CVE List: [CVE-2026-59884](https://www.cve.org/CVERecord?id=CVE-2026-59884), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-m4p7-r5rc-7g4j](https://github.com/advisories/GHSA-m4p7-r5rc-7g4j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59884](https://nvd.nist.gov/vuln/detail/CVE-2026-59884), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-3455](https://osv.dev/vulnerability/PYSEC-2026-3455), CC-BY-4.0, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-59884 · Whole record: https://cve.day/CVE-2026-59884.json · Rebuilt by cve.day 2026-11-25T22:59:27.998Z
