# CVE-2026-59885: pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service

- 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.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-07-14T16:40:00.515Z
- Modified: 2026-09-10T03:51:11.103Z
- Also known as: GHSA-8ppf-4f7h-5ppj, PYSEC-2026-3456
- Weaknesses: CWE-400, CWE-407
- 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, 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.

(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-8ppf-4f7h-5ppj> (advisory, third-party-advisory, web)
- <https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9> (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-59885> (advisory)
- <https://github.com/pyasn1/pyasn1> (package)

## Sources

- CVE List: [CVE-2026-59885](https://www.cve.org/CVERecord?id=CVE-2026-59885), CVE Terms of Use, modified 2026-07-14
- GitHub Advisory Database: [GHSA-8ppf-4f7h-5ppj](https://github.com/advisories/GHSA-8ppf-4f7h-5ppj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59885](https://nvd.nist.gov/vuln/detail/CVE-2026-59885), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-3456](https://osv.dev/vulnerability/PYSEC-2026-3456), CC-BY-4.0, modified 2026-07-22

---

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