Skip to content
High 7.5

pyasn1に細工されたASN.1データで大量のCPUを消費される脆弱性

CVE-2026-119196 First seen on SecPulse

Summary

pyasn1で、分割された構成型のBIT STRINGを含むBERやCERのデータを復号すると、処理量が急増して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で、分割された構成型のBIT STRINGを含むBERやCERのデータを復号すると、処理量が急増してCPUを使い尽くされるおそれがあります。影響を受けるのは0.6.5より前の版で、0.6.5で修正されています。pyasn1を0.6.5以上に更新してください。

Affected packages

PackageAffected → Fixed
pyasn1pyasn1 —
pippyasn1
< 0.6.5→ 0.6.5
PyPIpyasn1
< 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.

Original description The description as published by the source.

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed BIT STRING decoding repeatedly shifts and copies the complete bit value accumulated from earlier fragments. Attacker-controlled BER or CER input contains many constructed BIT STRING fragments; schema-driven DER also accepts a definite-length constructed BIT STRING. BitStringPayloadDecoder repeatedly calls BitString.fromOctetString with the prior bitString as prepend, shifting an ever-growing SizedInteger for each fragment and causing quadratic work. Large fragmented values can exhaust CPU during decode() without requiring later conversion or formatting. This issue is fixed in version 0.6.5.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details