Convert-ASN1に細工されたBERデータでメモリを枯渇させられる脆弱性
Summary
Perl向けモジュールConvert::ASN1の0.37より前のバージョンには、BERヘッダーで宣言された要素の長さを検証せずにsysreadへ渡してしまう脆弱性があります。細工された6バイトのヘッダーだけで、読み取り側のプロセスが最大4GBのメモリを確保し、メモリ不足でperlが終了する場合があります。修正版の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より前のバージョンには、BERヘッダーで宣言された要素の長さを検証せずにsysreadへ渡してしまう脆弱性があります。細工された6バイトのヘッダーだけで、読み取り側のプロセスが最大4GBのメモリを確保し、メモリ不足でperlが終了する場合があります。修正版の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-131868 perl-convert-asn1 Fix available
- Debian DEBIAN-CVE-2026-131868 libconvert-asn1-perl Fix available
- Ubuntu UBUNTU-CVE-2026-131868 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 a declared element length passed unchecked to sysread in asn_read and asn_get.
The length an element declares in its BER header is passed to sysread as the read size. Perl grows the target buffer to that size before reading, so memory is allocated from the declared length, not from the data received. A 6-byte header can declare a length of up to 4GB.
A single header makes the reading process allocate the declared size. Where the allocation fails, perl exits with "Out of memory", which eval cannot catch.
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
- web cpan.org
- web github.com