pyasn1にサービス拒否の脆弱性、細工されたREAL値で処理が停止
Summary
pyasn1のバイナリREAL値のデコード処理に、仮数部の長さに比例して処理時間が二乗で増える問題があります。細工されたASN.1データを受け取ると、比較的小さなREAL値でもデコード処理が数秒以上CPUコアを占有し、サービスが応答しなくなるおそれがあります。影響を受けるのは0.6.5より前のバージョンで、0.6.5で修正されています。pyasn1を利用しているシステムは、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のバイナリREAL値のデコード処理に、仮数部の長さに比例して処理時間が二乗で増える問題があります。細工されたASN.1データを受け取ると、比較的小さなREAL値でもデコード処理が数秒以上CPUコアを占有し、サービスが応答しなくなるおそれがあります。影響を受けるのは0.6.5より前のバージョンで、0.6.5で修正されています。pyasn1を利用しているシステムは、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-119197 pyasn1 Fix available
- Ubuntu UBUNTU-CVE-2026-119197 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, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. 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