PyPI
CVE-2026-119194
pyasn1 has quadratic CPU use in schemaless BER/CER/DER container 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 44% 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-fm9c-5rcf-2q5p
- Sources
- OSV.dev and GitHub
Description
When an application decodes attacker-controlled BER, CER, or DER data without an ASN.1 schema, a container with many distinct long tag IDs can cause quadratic CPU use. Repeated inputs can exhaust CPU and reduce service availability.
ConstructedPayloadDecoderBase._decodeComponentsSchemaless inserts every decoded component’s TagSet into a growing set, although it only needs to distinguish one tag set from two or more. Attacker-chosen tag IDs can have colliding TagSet hashes, making each later insertion compare against an increasing number of earlier tags. This path is present in v0.6.4 and is inherited by the CER and DER decoders. The proposed fix stops growing the classification set after it contains two distinct tag sets, while retaining every decoded component and its order. On v0.6.4 with CPython 3.12.10, increasing the collision input from 3,200 to 6,400 components raised decode CPU time from 0.438 to 1.747 seconds; a comparable control rose from 0.031 to 0.065 seconds.
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-119196pyasn1 has quadratic CPU consumption in constructed BIT STRING decodingHigh 7.5 30 Oct 2026
- 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
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119194
- GitHub Advisory Database https://github.com/advisories/GHSA-fm9c-5rcf-2q5p