PyPI
CVE-2026-119196
pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding
- Severity
- High 7.5
- Published
- 30 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.6.5
- Exploit chance
- 0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-2qm8-x737-gmw5
- Sources
- OSV.dev and GitHub
Description
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.
Affected software
| Software | Affected versions |
|---|---|
pyasn1PyPI · osv:PyPI:pyasn1 |
|
About pyasn1
Vulnerabilities in pyasn1
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-119197pyasn1 has quadratic-complexity denial of service in binary REAL decodingHigh 7.5 30 Oct 2026
- CVE-2026-119195pyasn1 has quadratic-time denial of service in constructed string and indefinite-length ANY decodingHigh 7.5 30 Oct 2026
- CVE-2026-119194pyasn1 has quadratic CPU use in schemaless BER/CER/DER container decodingHigh 7.5 30 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119196
- GitHub Advisory Database https://github.com/advisories/GHSA-2qm8-x737-gmw5