Convert-ASN1に短い指数表記の文字列でCPUを使い切られる脆弱性
Summary
Convert-ASN1の0.37より前のバージョンには、INTEGERの符号化で指数表記の文字列を処理する際にCPUを使い切られる脆弱性があります。短い指数表記の文字列でも大量の計算が発生し、CPU資源が枯渇するおそれがあります。0.37で修正されているため、0.37以降へのアップデートをおすすめします。
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.
Convert-ASN1の0.37より前のバージョンには、INTEGERの符号化で指数表記の文字列を処理する際にCPUを使い切られる脆弱性があります。短い指数表記の文字列でも大量の計算が発生し、CPU資源が枯渇するおそれがあります。0.37で修正されているため、0.37以降へのアップデートをおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANConvert-ASN1 |
< 0.37→ 0.37 |
0.37 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-126682 perl-convert-asn1 Fix available
- Debian DEBIAN-CVE-2026-126682 libconvert-asn1-perl Fix available
- Ubuntu UBUNTU-CVE-2026-126682 libconvert-asn1-perl No fixed version in this record
Original description The description as published by the source.
Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via exponent-notation string in INTEGER encoding.
The encoder routes any value with abs >= 2**31 to i2osp without validating that it is an integer. A string in exponent notation such as "1e8000" passes that threshold. Math::BigInt expands it to an 8001-digit integer, and i2osp's per-octet conversion loop is quadratic in that size.
An attacker who controls encoded INTEGER values can exhaust CPU with a short exponent-notation string.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- report github.com
- web cpan.org
- web github.com