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

CVE-2026-59886: pyasn1: Uncontrolled resource consumption when converting decoded REAL values

July 21, 2026

The univ.Real type converted its (mantissa, base, exponent) value to a Python float using exact big-integer exponentiation. A BER/CER/DER-encoded REAL value only a few bytes long can carry a very large exponent, causing this computation to attempt to materialize an astronomically large integer.

Any operation that triggers float conversion on such a decoded value — prettyPrint(), str(), comparison, arithmetic, or an explicit float() call — consumes excessive CPU and memory, hanging the process. Applications that decode untrusted ASN.1 data and then print, log, or compare the decoded objects are vulnerable to denial of service. Decoding alone does not trigger the issue.

References

  • github.com/advisories/GHSA-hm4w-wwcw-mr6r
  • github.com/pyasn1/pyasn1/commit/e60c691cb91addb8fcefa2f537e85ede6fb1e886
  • github.com/pyasn1/pyasn1/releases/tag/v0.6.4
  • github.com/pyasn1/pyasn1/security/advisories/GHSA-hm4w-wwcw-mr6r
  • nvd.nist.gov/vuln/detail/CVE-2026-59886

Code Behaviors & Features

Detect and mitigate CVE-2026-59886 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/pyasn1/CVE-2026-59886.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 22 Jul 2026 12:18:33 +0000.