Skip to main content

Convert::ASN1 CVE-2026-131868

| EUVDEUVD-2026-130806 HIGH
Memory Allocation with Excessive Size Value (CWE-789)
2026-11-20 CPANSec GHSA-9462-3x3w-vr66
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app parsing ASN.1 stream via asn_read/asn_get
  2. Delivery
    Send 6-byte BER header declaring up to 4GB
  3. Exploit
    sysread pre-sizes buffer to declared length
  4. Execution
    Memory allocation fails
  5. Impact
    Process exits 'Out of memory', uncatchable denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

Exploitation requires that the target application decode attacker-controlled BER/DER using Convert::ASN1's streaming filehandle functions asn_read or asn_get (versions before 0.37), reading from a socket or file the attacker can influence; a single crafted header declaring a large length is sufficient and no authentication or user interaction is needed (PR:N/UI:N). Limiting factors: the in-memory decode path and applications that do not use the asn_read/asn_get streaming interface on untrusted streams are not affected by this specific pre-allocation behavior; impact is confined to process crash/denial of service (A:H only), and success depends on the declared length being large enough that allocation fails on the host. Fixed in version 0.37, which caps each read at 65536 bytes so the buffer tracks data actually received; updating is the vendor remedy.

Impact

The signals align on moderate, availability-only risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:H, 7.5) describes a network-reachable, no-auth, no-interaction denial of service with no confidentiality or integrity impact - consistent with CWE-789 (memory allocation with excessive size value) and the description, where a BER header's declared length (up to 4GB from a 6-byte header) is passed unchecked to sysread, causing Perl to pre-grow the buffer and the process to exit with an uncatchable 'Out of memory'. SSVC corroborates this: Exploitation 'none', Automatable 'yes' (a single static crafted header triggers it, no grooming or timing), Technical Impact 'partial' (crash, not takeover). EPSS is low at 0.16% (5th percentile) and the CVE is NOT in CISA KEV, so there is no evidence of exploitation in the wild; the vuln.today Decision label is 'this_week', reflecting an easily-automatable but non-critical DoS rather than an emergency. Net: this is a genuine, cheaply-triggered availability bug, not a high-CVSS-but-illusory issue, but it is a crash/DoS only - appropriately prioritized as a routine (not emergency) patch. One cross-signal conflict to flag: the input Tag 'Information Disclosure' contradicts the CVSS vector, which sets C:N/I:N and A:H - there is no confidentiality impact, so that tag is mislabeled and should be read as denial of service.

Exploit ScenarioDerived

An application that uses Convert::ASN1's streaming decode functions (asn_read/asn_get) to parse BER/DER data arriving over a socket or filehandle - for example LDAP, SNMP, or Kerberos message handling - receives an attacker-supplied message whose 6-byte BER header declares a length of up to 4GB while sending only a few bytes of body. Perl pre-allocates the target buffer to the declared length before reading, and when allocation fails the interpreter aborts with 'Out of memory', which eval cannot catch, killing the process. No weaponized public exploit is listed, but the vendor patch ships a regression test containing a crafted reproducer (a header declaring ~2GB followed by 100 bytes).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Memory exhaustion in Perl's Convert::ASN1 before 0.37 lets remote attackers crash any process that decodes attacker-supplied BER/DER through the streaming functions asn_read or asn_get. A six-byte element header can declare a length approaching 4GB, and the library hands that declared size straight to sysread, so Perl grows the target buffer to the declared length before any data arrives; when the allocation fails, the interpreter aborts with an uncatchable 'Out of memory' error. No authentication or user interaction is required and the trigger is automatable, but EPSS is low (0.16%, 5th percentile), no public exploit or active exploitation has been identified, and the vendor shipped a fix in 0.37.

RemediationAI

Upgrade to Convert::ASN1 0.37, the version that caps each read at 65536 bytes in asn_read and asn_get; the vendor states that updating is the complete remedy, so there is no separately documented workaround. Install it from CPAN (https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes) or via the patched commit 88bd86b5a3ce3430ebb8b78fe5307f234198bf16 issued through CPANSec, and confirm with perldoc or the module VERSION that no older copy of lib/Convert/ASN1/IO.pm remains earlier in @INC, since bundling applications and system packages can shadow the upgraded module. Where upgrading cannot happen immediately, compensation is at the application layer: stop routing untrusted sockets or files into asn_read or asn_get and instead decode only bounded, fully buffered input already validated for sane element lengths, accepting the memory cost of buffering and the loss of streaming; alternatively wrap the decoding work in a separate supervised process or worker with a hard address-space limit so an allocation failure terminates only that child and not the main service, at the cost of process supervision complexity. Note that eval-based error handling will not contain this failure, because the out-of-memory exit is not catchable.

Affected ProductsAI

All releases of the Perl distribution Convert::ASN1 prior to 0.37 are affected when the streaming decode functions asn_read or asn_get are used on attacker-influenced data. The affected component is lib/Convert/ASN1/IO.pm, which ships with the module; no CPE identifiers were supplied in the intelligence, and the library is widely redistributed as a CPAN dependency, so downstream packages that bundle an older IO.pm inherit the behavior. The vendor changelog for the corrected release is at https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes, the fixing commit is https://github.com/cpan-authors/perl-Convert-ASN1/commit/88bd86b5a3ce3430ebb8b78fe5307f234198bf16.patch, and the coordinated disclosure is at https://seclists.org/oss-sec/2026/q4/797; ENISA tracks the issue as EUVD-2026-130806 and NVD as CVE-2026-131868.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Convert::ASN1 is a long-standing pure-Perl library for encoding and decoding ASN.1 structures with BER/DER rules; its IO layer (lib/Convert/ASN1/IO.pm) offers streaming helpers asn_read and asn_get that pull one element at a time from a filehandle. In versions before 0.37 the element length parsed from the BER header was passed unchanged as the size argument of Perl's sysread, and because sysread pre-extends the scalar it writes into, the process reserves the full declared length up front. Because a BER long-form length field of a few bytes can express values near 4GB, the buffer is sized from the attacker's declaration rather than from the bytes actually received (CWE-789, memory allocation with excessive size value). Perl's allocator failure is fatal and cannot be trapped by eval, so the failure mode is immediate process termination rather than a catchable exception. The fix, commit 88bd86b5a3ce3430ebb8b78fe5307f234198bf16, introduces a $MAX_READ cap of 65536 bytes applied at every sysread call site in asn_read, and clamps the requested size in asn_get, so buffer growth tracks data received; the accompanying test t/27asn_read_length.t verifies that a header declaring roughly 2GB backed by only 100 bytes fails cleanly without a large VmPeak increase and that multi-read elements are still reassembled correctly. Applications that use the in-memory decode path, or that never feed untrusted streams through asn_read/asn_get, are outside this pre-allocation behavior.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Attacker-supplied BER over a network stream needs no auth or interaction (AV:N/AC:L/PR:N/UI:N); a crash-only memory-exhaustion gives A:H with C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Nov 20, 2026 - 19:37 NVD
7.5 (None) 7.5 (HIGH)
CVE Published
Nov 20, 2026 - 00:32 cve.org
UNKNOWN (no severity yet)
CVE Published
Nov 20, 2026 - 00:32 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-131868 is a high-severity memory exhaustion flaw in the Perl module Convert::ASN1 versions before 0.37 that can crash any service decoding untrusted BER/DER data, creating a denial-of-service risk. The vulnerability is remotely triggerable without authentication, affecting operations that rely on Perl-based ASN.1 parsing, though no public exploit or active exploitation has been identified and the vendor has released a patch. Leadership should prioritize remediation to prevent potential service outages.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
widely-used Perl ASN.1 CPAN library, a dependency of Net::LDAP tooling
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy