PyPI
CVE-2026-119197
pyasn1 has quadratic-complexity denial of service in binary REAL 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-mm57-4v3p-rchx
- Sources
- OSV.dev and GitHub
Description
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.
A comparatively small REAL value can hold a decoder worker on one CPU core for seconds or longer. The attacker must be able to supply data that the application sends to an affected decoder, and application-level input limits may reduce exposure.
Workarounds
Upgrade to pyasn1 0.6.5. Until then, reject or strictly limit attacker-controlled ASN.1 input that may contain REAL values before passing it to pyasn1. The appropriate size limit depends on the application's available CPU time and request volume.
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-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-119197
- GitHub Advisory Database https://github.com/advisories/GHSA-mm57-4v3p-rchx