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

CVE-2026-119196: pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding

October 30, 2026

In pyasn1 through 0.6.4, decoding a constructed BIT STRING with many fragments repeatedly shifts and copies the entire value accumulated so far. For fixed-size fragments, CPU time grows quadratically with the encoded input size. An application that passes sufficiently large, attacker-controlled ASN.1 data to an affected decoder can suffer CPU exhaustion during decode(); no conversion or formatting of the decoded value is required.

The BER and CER decoders reach this path for constructed BIT STRING values, with or without an asn1Spec. The DER decoder rejects constructed BIT STRING in schema-less decoding, but its schema-driven path accepts a definite-length constructed BIT STRING when given a matching asn1Spec and reaches the same vulnerable code. Constructed BIT STRING is not valid DER; this DER exposure is due to decoder permissiveness. DER rejects the indefinite-length form.

This is a separate decoder path from the OBJECT IDENTIFIER accumulation fixed in CVE-2026-59885.

References

  • github.com/advisories/GHSA-2qm8-x737-gmw5
  • github.com/pyasn1/pyasn1/commit/73ba7b043cc7e92cb37f16f2c955bff93b0e6f6c
  • github.com/pyasn1/pyasn1/pull/132
  • github.com/pyasn1/pyasn1/releases/tag/v0.6.5
  • github.com/pyasn1/pyasn1/security/advisories/GHSA-2qm8-x737-gmw5
  • nvd.nist.gov/vuln/detail/CVE-2026-119196

Code Behaviors & Features

Detect and mitigate CVE-2026-119196 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-119196.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:00 +0000.