pyasn1にCPU消費を招く脆弱性、攻撃者の入力で処理が遅延
Summary
pyasn1の0.3.3から0.6.5までには、スキーマなしのBER・CER・DER形式のデータを復号する際に処理が二次的に増えてCPUを使い切られる脆弱性があります。CVSS v3.xの基本値は7.5で、攻撃者が細工したデータを繰り返し送られるとサービスの可用性が下がるおそれがあります。修正版の0.6.5への更新が案内されているため、利用しているパッケージのバージョンを確認し、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.3.3から0.6.5までには、スキーマなしのBER・CER・DER形式のデータを復号する際に処理が二次的に増えてCPUを使い切られる脆弱性があります。CVSS v3.xの基本値は7.5で、攻撃者が細工したデータを繰り返し送られるとサービスの可用性が下がるおそれがあります。修正版の0.6.5への更新が案内されているため、利用しているパッケージのバージョンを確認し、0.6.5以降に上げてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pyasn1pyasn1 | — | Not listed |
| pippyasn1 |
< 0.6.5→ 0.6.5 |
0.6.5 |
| PyPIpyasn1 |
≥ 0.3.3, < 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-119194 pyasn1 Fix available
- Ubuntu UBUNTU-CVE-2026-119194 pyasn1 Fix available
Original description The description as published by the source.
pyasn1 is a generic ASN.1 library for Python. From 0.3.3 until 0.6.5, schemaless container decoding stores every decoded component's TagSet in a growing set even though only one-versus-multiple tag types must be distinguished. Attacker-controlled BER, CER, or DER input contains many distinct long tag IDs whose TagSet hashes collide. Each later set insertion compares against an increasing number of earlier colliding tags in ConstructedPayloadDecoderBase._decodeComponentsSchemaless, producing quadratic CPU work while decoded values and order remain valid. Repeated inputs can exhaust decoder CPU and reduce service availability. 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