Convert-ASN1に攻撃者が大量のメモリを消費させる脆弱性
Summary
Perl向けのConvert-ASN1で、長さがゼロのBIT STRINGを処理すると大量のメモリを消費される脆弱性が見つかりました。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で、長さがゼロのBIT STRINGを処理すると大量のメモリを消費される脆弱性が見つかりました。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-126819 perl-convert-asn1 Fix available
- Debian DEBIAN-CVE-2026-126819 libconvert-asn1-perl Fix available
- Ubuntu UBUNTU-CVE-2026-126819 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 memory exhaustion via zero-length BIT STRING content.
A BIT STRING with zero content octets passes -1 to substr as the length. Perl reads a negative length as an offset from the end of the string, so the decoded value is nearly all of the input that follows the element. In the constructed form each zero-length segment copies the rest of the input again, so memory grows with the square of the input size.
An attacker who controls the decoded data can exhaust memory with a short constructed BIT STRING. The resulting value also contains bytes from adjacent input.
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