Memory exhaustion in Convert::ASN1 for Perl via declared element length
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-789.
Summary
Convert::ASN1 for Perl, versions before 0.37, uses the length declared in a BER element header as the read size passed to sysread in asn_read and asn_get without checking it. Perl allocates the buffer from that declared length before any data arrives, so a single crafted 6-byte header can make the reading process allocate up to 4GB. An unauthenticated remote attacker can exhaust memory and cause a denial of service, and where allocation fails perl exits with "Out of memory" that eval cannot catch.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Convert-ASN1 | before 0.37 | 0.37 | Patch available | CNA |
- Convert-ASN1 Vendor— Affected before 0.37 Fixed in 0.37 Patch available CNA
Remediation
Upgrade Convert-ASN1 to version 0.37.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA Convert-ASN1 Fixed in 0.37
Timeline
- 2026-11-20 Threatist record created from CVE-2026-131868
- 2026-11-20 Alias added: GHSA-9462-3x3w-vr66
- 2026-11-20 CVSS score added · CISA ADP
- 2026-11-20 CISA SSVC decision points changed
References
Sources
- CVE-2026-131868 · CVE Program
- CVE-2026-131868 · NVD
- FIRST EPSS
- GHSA-9462-3x3w-vr66 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences