pyasn1にサービス拒否の脆弱性、細かく分割されたデータで処理が重くなる
Summary
pyasn1の0.6.5より前のバージョンには、分割された構造化文字列やINDEFINITE LENGTHのANYを復号する際に処理時間が二次関数的に増える脆弱性があります。細かく分割された悪意あるBERまたはCERのデータで復号処理のCPUが使い切られ、サービスが停止するおそれがあります。対策は0.6.5への修正版への更新です。機密性や完全性への影響は示されていません。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
pyasn1の0.6.5より前のバージョンには、分割された構造化文字列やINDEFINITE LENGTHのANYを復号する際に処理時間が二次関数的に増える脆弱性があります。細かく分割された悪意あるBERまたはCERのデータで復号処理のCPUが使い切られ、サービスが停止するおそれがあります。対策は0.6.5への修正版への更新です。機密性や完全性への影響は示されていません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pyasn1pyasn1 | — | Not listed |
| pippyasn1 |
< 0.6.5→ 0.6.5 |
0.6.5 |
| PyPIpyasn1 |
< 0.6.5→ 0.6.5 |
0.6.5 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-119195 pyasn1 Fix available
- Ubuntu UBUNTU-CVE-2026-119195 pyasn1 Fix available
Original description The description as published by the source.
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed string and indefinite-length ANY decoding repeatedly concatenates each fragment onto a growing bytes value. Attacker-controlled BER or CER data can use many constructed OCTET STRING or character-string fragments. DER rejects constructed OCTET STRING without a schema, but accepts its definite-length form when asn1Spec selects univ.OctetString; it also accepts constructed character strings such as UTF8String without a schema, even though those encodings are not valid DER. The separate indefinite-length ANY path is reachable in BER and CER when asn1Spec selects univ.Any; DER rejects indefinite lengths. OctetStringPayloadDecoder uses growing header concatenation and AnyPayloadDecoder.indefLenValueDecoder uses growing chunk concatenation, repeatedly copying an increasing prefix and causing quadratic work. A sufficiently fragmented value can occupy decoding workers and cause CPU exhaustion without confidentiality or integrity impact. This issue is fixed in version 0.6.5.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com