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

CVE-2026-119197: pyasn1 has quadratic-complexity denial of service in binary REAL decoding

October 30, 2026

In pyasn1 0.6.4 and earlier, decoding a binary-encoded ASN.1 REAL with a large mantissa can consume CPU time quadratic in the mantissa length. The BER, CER, and DER decoders all use the affected RealPayloadDecoder. An application is exposed when it passes attacker-controlled ASN.1 containing a REAL value to one of these decoders, either without an asn1Spec or with a schema that includes REAL. The work occurs inside decode(); the application does not need to convert, print, or otherwise use the resulting REAL object.

This is distinct from CVE-2026-59886, which concerns converting an already-decoded REAL to a Python float. That issue was fixed in 0.6.4 and its advisory states that decoding alone does not trigger it.

References

  • github.com/advisories/GHSA-mm57-4v3p-rchx
  • github.com/pyasn1/pyasn1/commit/ce3ec3390784780a530047e0e77be5ff457636a4
  • github.com/pyasn1/pyasn1/pull/132
  • github.com/pyasn1/pyasn1/releases/tag/v0.6.5
  • github.com/pyasn1/pyasn1/security/advisories/GHSA-mm57-4v3p-rchx
  • nvd.nist.gov/vuln/detail/CVE-2026-119197

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.6.5

Fixed versions

  • 0.6.5

Solution

Upgrade to version 0.6.5 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-407: Inefficient Algorithmic Complexity

Source file

pypi/pyasn1/CVE-2026-119197.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:28 +0000.