Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pyasn1
  4. ›
  5. CVE-2026-59885

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

July 21, 2026

The BER/CER/DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs. A small crafted payload (tens of kilobytes) containing an OID with many arcs consumes seconds of CPU per decode() call, allowing denial of service in any application that decodes untrusted ASN.1 data (certificates, LDAP, SNMP, Kerberos, etc.). The corresponding encoders have the same quadratic behavior, reachable when an application re-encodes previously decoded attacker-supplied values.

The arc-size limit introduced for CVE-2026-23490 bounds the byte length of an individual arc but not the number of arcs, so it does not mitigate this issue.

References

  • github.com/advisories/GHSA-8ppf-4f7h-5ppj
  • github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9
  • github.com/pyasn1/pyasn1/releases/tag/v0.6.4
  • github.com/pyasn1/pyasn1/security/advisories/GHSA-8ppf-4f7h-5ppj
  • nvd.nist.gov/vuln/detail/CVE-2026-59885

Code Behaviors & Features

Detect and mitigate CVE-2026-59885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.4

Fixed versions

  • 0.6.4

Solution

Upgrade to version 0.6.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/pyasn1/CVE-2026-59885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 22 Jul 2026 12:17:10 +0000.