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

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

July 21, 2026

The BER decoder (shared by the CER and DER codecs) parses long-form tags by accumulating continuation octets in a loop with no upper bound on the size of the tag ID. A crafted input can force the decoder to build an arbitrarily large integer, with CPU cost growing quadratically in input size — a ~1 MB input consumes over a minute of CPU. On Python 3.11+, the oversized tag ID can also trigger an unhandled ValueError (integer string conversion limit) while the decoder formats error messages, violating the documented PyAsn1Error contract and potentially bypassing caller error handling.

Any application decoding untrusted BER/CER/DER input is affected.

References

  • github.com/advisories/GHSA-m4p7-r5rc-7g4j
  • github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5
  • github.com/pyasn1/pyasn1/releases/tag/v0.6.4
  • github.com/pyasn1/pyasn1/security/advisories/GHSA-m4p7-r5rc-7g4j
  • nvd.nist.gov/vuln/detail/CVE-2026-59884

Code Behaviors & Features

Detect and mitigate CVE-2026-59884 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

Source file

pypi/pyssn1/CVE-2026-59884.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:07 +0000.