Convert-ASN1に攻撃者が細工したデータでCPUを使い尽くされる脆弱性
Summary
Perl向けモジュールConvert-ASN1の0.37より前の版には、バイナリREAL形式のデコード処理で指数部の長さを検査しない脆弱性があり、細工されたデータでCPUを使い尽くされるおそれがあります。影響を受けるのは0.37より前の版で、0.37で修正されています。Convert-ASN1を利用している場合は、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.
Perl向けモジュールConvert-ASN1の0.37より前の版には、バイナリREAL形式のデコード処理で指数部の長さを検査しない脆弱性があり、細工されたデータでCPUを使い尽くされるおそれがあります。影響を受けるのは0.37より前の版で、0.37で修正されています。Convert-ASN1を利用している場合は、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-126576 perl-convert-asn1 Fix available
- Debian DEBIAN-CVE-2026-126576 libconvert-asn1-perl Fix available
- Ubuntu UBUNTU-CVE-2026-126576 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 unchecked exponent length in binary REAL decoding.
Binary REAL decoding never bounds-checks the exponent length against the available content. For a minimal one-byte binary REAL, the exponent byte is read from outside the element, making the mantissa length -1. Perl reads a negative length as an offset from the end of the string, so the mantissa is nearly all of the input that follows the element. The long-form exponent path also omits the extra length octet when sizing the mantissa.
An attacker who controls the decoded data can exhaust CPU with a list of such values, as each mantissa loop iterates over the remaining input. The decoded values are also computed from bytes outside each element.
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