Convert-ASN1に攻撃者が巨大な整数値でCPUを使い果たさせられる脆弱性
Summary
Perl向けモジュールConvert-ASN1の0.37より前のバージョンには、INTEGERやENUMERATEDの値を処理する際の計算量が大きくなる脆弱性(CVE-2026-126540)があります。攻撃者が細工した巨大な値を1つ送るだけで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.
Perl向けモジュールConvert-ASN1の0.37より前のバージョンには、INTEGERやENUMERATEDの値を処理する際の計算量が大きくなる脆弱性(CVE-2026-126540)があります。攻撃者が細工した巨大な値を1つ送るだけで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-126540 perl-convert-asn1 Fix available
- Debian DEBIAN-CVE-2026-126540 libconvert-asn1-perl Fix available
- Ubuntu UBUNTU-CVE-2026-126540 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 quadratic bigint loop in os2ip.
Every INTEGER or ENUMERATED longer than four content octets reaches os2ip, which iterates over each content octet with $result = ($result * 256) + $octet. Each multiplication operates on a bigint that grows by one octet per step, so decoding an n-octet value takes O(n^2) bigint work. Nothing limits content length before this loop runs.
An attacker who controls the decoded data can exhaust CPU with a single oversized INTEGER or ENUMERATED value.
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