Vulnerability · Published Oct 29, 2026 · Assigned by GitHub_M
CVE-2026-119196pyasn1: Quadratic CPU consumption in constructed BIT STRING decoding
High 7.5
In plain English
A high-severity security flaw in pyasn1 from pyasn1. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed BIT STRING decoding repeatedly shifts and copies the complete bit value accumulated from earlier fragments. Attacker-controlled BER or CER input contains many constructed BIT STRING fragments; schema-driven DER also accepts a definite-length constructed BIT STRING. BitStringPayloadDecoder repeatedly calls BitString.fromOctetString with the prior bitString as prepend, shifting an ever-growing SizedInteger for each fragment and causing quadratic work. Large fragmented values can exhaust CPU during decode() without requiring later conversion or formatting. This issue is fixed in version 0.6.5.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pyasn1 | no fix listed | DEBIAN-CVE-2026-119196 |
| Debian:13 | pyasn1 | no fix listed | DEBIAN-CVE-2026-119196 |
| Debian:14 | pyasn1 | 0.6.5-1 | DEBIAN-CVE-2026-119196 |
| PyPI | pyasn1 | 0.6.5 | GHSA-2qm8-x737-gmw5 |
| Ubuntu:22.04:LTS | pyasn1 | no fix listed | UBUNTU-CVE-2026-119196 |
| Ubuntu:24.04:LTS | pyasn1 | no fix listed | UBUNTU-CVE-2026-119196 |
| Ubuntu:26.04:LTS | pyasn1 | no fix listed | UBUNTU-CVE-2026-119196 |
| Ubuntu:26.10 | pyasn1 | no fix listed | UBUNTU-CVE-2026-119196 |
Affected products (as reported)
Weakness: CWE-407 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pyasn1/pyasn1/security/advisories/GHSA-2qm8-x737-gmw5 x_refsource_CONFIRM
- https://github.com/pyasn1/pyasn1/pull/132 x_refsource_MISC
- https://github.com/pyasn1/pyasn1/commit/73ba7b043cc7e92cb37f16f2c955bff93b0e6f6c x_refsource_MISC
- https://github.com/pyasn1/pyasn1/releases/tag/v0.6.5 x_refsource_MISC