Skip to main content

Convert::ASN1 CVE-2026-126819

| EUVDEUVD-2026-130803 HIGH
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-11-20 CPANSec GHSA-2gpm-x9q7-6prr
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Send crafted ASN.1 message to parser
  2. Exploit
    Constructed BIT STRING with zero-length segments
  3. Execution
    substr -1 triggers quadratic copying
  4. Impact
    Memory exhaustion denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

Exploitation requires an application built on Convert::ASN1 before 0.37 that calls decode() on attacker-influenced ASN.1/BER data containing a BIT STRING element; the quadratic blow-up specifically needs the constructed form (tag 0x23) with multiple zero-length content segments. No authentication or user interaction is needed (PR:N/UI:N), but the practical limiting factor is reachability: the attacker must be able to deliver ASN.1 bytes to a decoding code path (e.g. an LDAP/SNMP/certificate parser), and the vulnerable version (<0.37) must be in use. Default behavior is affected - no special non-default configuration is required once untrusted ASN.1 is parsed.

Impact

Signals are consistent and point to a genuine but non-emergency availability issue rather than a top-priority emergency. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) scores 7.5 on availability alone - remote, unauthenticated, low-complexity denial of service with no confidentiality or integrity impact per NVD. EPSS is low (0.17%, 7th percentile), there is no CISA KEV listing, and SSVC reports Exploitation: none, which aligns with the vuln.today 'this_week' label rather than 'act_now'/'emergency'. Counterbalancing that, SSVC marks the flaw Automatable: yes and the mechanism is simple (a short constructed BIT STRING forces quadratic memory growth), so opportunistic DoS against exposed Perl ASN.1 parsers is plausible even without a weaponized exploit. One cross-signal tension to verify: the input Tag is 'Information Disclosure' and the description notes the decoded value 'also contains bytes from adjacent input', yet the CVSS vector rates C:N (no confidentiality impact) - the leaked bytes come from the same attacker-supplied message, so the practical impact is memory exhaustion, not secret disclosure. Treat this as a scheduled-patch availability bug, not a high-CVSS-but-low-real-risk false alarm nor a drop-everything emergency.

Exploit ScenarioDerived

An application that uses Convert::ASN1 (<0.37) to decode untrusted ASN.1/BER data - for example a Perl service parsing LDAP, SNMP, or certificate structures - receives an attacker-supplied message containing a constructed BIT STRING made of many zero-length fragments. Each zero-length segment passes -1 to substr and copies the remainder of the input again, so memory grows with the square of the input size, and a short request exhausts process memory. No standalone weaponized exploit is published, but the vendor patch ships a regression test that demonstrates the quadratic-memory condition (500 zero-length fragments).

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 the Perl module Convert::ASN1 before 0.37 lets remote attackers crash or stall any application that decodes attacker-supplied ASN.1 data containing a zero-length BIT STRING. Because the decoded length of -1 is passed to substr, Perl interprets it as an offset from the end of the string, so the returned value spans nearly the whole remaining input; in the constructed form (tag 0x23) each empty segment repeats that copy, so memory consumption grows with the square of the input size, and the resulting value can also leak bytes from adjacent input. The flaw is unauthenticated and requires no user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5), but it is not known to be exploited in the wild, EPSS is only 0.17% (7th percentile) and CISA SSVC rates exploitation as none with partial technical impact; the vendor fix is version 0.37. No public exploit code has been identified at time of analysis, though the fix commit ships a regression test that reproduces the quadratic blow-up with 500 zero-length fragments.

RemediationAI

Vendor-released patch: upgrade Convert::ASN1 to version 0.37 or later (cpanm Convert::ASN1@0.37, or install TIMLEGGE/Convert-ASN1-0.37 from CPAN), which applies the guard in _dec_bitstring that returns an empty value with a zero bit count for zero-length content and rejects an unused-bits octet greater than 7. Where an immediate upgrade is not possible, the practical compensating controls all have trade-offs: reject or refuse to decode any BER element using the constructed BIT STRING tag (0x23) before it reaches Convert::ASN1 - this eliminates the quadratic amplification but breaks interoperability with legitimate senders that use fragmented BIT STRING encodings; cap the size of ASN.1 input accepted from untrusted peers (for example by limiting LDAP/SNMP message or certificate sizes at the transport layer), which bounds the maximum allocation but still lets a single short message produce an over-long decoded value and its adjacent-byte disclosure; and run decoding workers under a hard memory rlimit and request timeout so an exhaustion attempt kills the worker rather than the host, accepting that legitimate large decodes may also be terminated. Because the same defect silently copies neighbouring input into the decoded value, treat any data decoded by an unpatched instance from an untrusted source as potentially contaminated rather than relying on size limits alone. Advisory references: https://seclists.org/oss-sec/2026/q4/797 and https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes; the upstream fix commit is https://github.com/cpan-authors/perl-Convert-ASN1/commit/a369bb1c39061d67454216a6a1d0eae11932806e.patch.

Affected ProductsAI

Every release of the Perl distribution Convert::ASN1 prior to 0.37 is affected, including versions bundled or vendored by downstream Perl applications and CPAN modules that use it to parse untrusted BER/DER (for example LDAP, SNMP or certificate-processing code paths). The fix ships in Convert::ASN1 0.37 (release TIMLEGGE/Convert-ASN1-0.37, see https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes), and the code change is visible in the upstream commit patch at https://github.com/cpan-authors/perl-Convert-ASN1/commit/a369bb1c39061d67454216a6a1d0eae11932806e.patch. No CPE identifiers were supplied with the advisory data, so scoping must be done by enumerating installed Convert::ASN1 versions (check $Convert::ASN1::VERSION or the module's Changes file) rather than by CPE matching. The issue was reported by CPANSec and is tracked as EUVD-2026-130803 and CVE-2026-126819; the oss-security posting at https://seclists.org/oss-sec/2026/q4/797 and the upstream issue tracker at https://github.com/cpan-authors/perl-Convert-ASN1/issues carry the vendor-side detail.

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 pure-Perl ASN.1 BER/DER encoder and decoder used across the Perl ecosystem for protocols and formats such as LDAP, SNMP and X.509 handling. The defect sits in _dec_bitstring in lib/Convert/ASN1/_decode.pm: for a BIT STRING whose content octets are empty, the decoded length becomes -1 and is handed to substr, where a negative length is interpreted as an offset counted back from the end of the string rather than as an error. The result is that the decoded value silently absorbs almost all of the remaining input, including bytes that belong to neighbouring elements, which is why the issue is tagged Information Disclosure in addition to its availability impact. With the constructed BIT STRING form (tag 0x23), every zero-length fragment triggers the same over-long copy, making the total work and memory grow quadratically with input size from a very small crafted message. This matches CWE-1284 (Improper Validation of Specified Quantity in Input): the parser never validated the element's declared content length (nor the unused-bits octet) before using it. The upstream commit a369bb1c39061d67454216a6a1d0eae11932806e adds a guard that returns an empty string with a zero bit count when the content length is below 1, and additionally rejects a BIT STRING whose leading unused-bits octet is greater than 7 with a 'BIT STRING decode error'. The trigger in production code is not otherwise described in the available sources beyond the conditions above; no special configuration is required - any decode() call on untrusted BER data reaching a BIT STRING is in scope.

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

Remote parsers accept attacker-supplied ASN.1 (AV:N), a short input reliably triggers quadratic memory with no privileges or interaction (AC:L/PR:N/UI:N); impact is memory exhaustion, and leaked bytes are attacker's own, so C:N/I:N/A:H.

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 (HIGH)
CVE Published
Nov 20, 2026 - 00:28 cve.org
HIGH 7.5
CVE Published
Nov 20, 2026 - 00:28 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity flaw in the widely used Perl Convert::ASN1 module (before version 0.37) can cause memory exhaustion and crashes in applications that decode untrusted ASN.1 data. Any internet-facing service using this library is at risk of denial-of-service, disrupting availability. Leadership should prioritize patching affected systems to prevent potential service outages.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
core ASN.1 decoder for Perl LDAP/SNMP/crypto stacks, moderate footprint
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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