Skip to main content

Convert::ASN1 EUVDEUVD-2026-130801

| CVE-2026-126576 HIGH
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-11-20 CPANSec GHSA-6j49-wrh8-crcc
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted ASN.1 payload to parser
  2. Delivery
    Reach Convert::ASN1 binary REAL decoder
  3. Exploit
    Underflow exponent length check (mantissa length -1)
  4. Execution
    Iterate mantissa loop over remaining input
  5. Impact
    Exhaust CPU / deny service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
Exploitation Conditions

Exploitation requires that an application use Convert::ASN1 (before 0.37) to decode attacker-controlled ASN.1 input and that the active ASN.1 template/grammar permit a REAL type, so the crafted binary REAL element reaches _dec_real. The attacker must control the bytes being decoded; the CVSS vector (PR:N/UI:N) indicates no authentication or user interaction is needed at the library boundary. The primary limiting factor is deployment-dependent: the vulnerability is only reachable where untrusted, externally-supplied ASN.1 is parsed (e.g. network protocol or certificate handling) - applications that only decode trusted, internally-generated data are not meaningfully exposed. Impact is confined to CPU exhaustion of the decoding process.

Impact

The 7.5 (High) CVSS score is driven entirely by availability (C:N/I:N/A:H) - this is a CPU-exhaustion denial-of-service, not a confidentiality or integrity flaw. The exploitation signals are consistent and point to moderate, not urgent, priority: EPSS is 0.21% (11th percentile), the CVE is not in CISA KEV, and the SSVC exploitation state is 'none' (no observed exploitation). Mitigating against complacency, SSVC rates it Automatable:yes with partial technical impact, and the CVSS vector (AV:N/AC:L/PR:N/UI:N) means that wherever an application feeds untrusted ASN.1 to this library, the condition is trivially and repeatably triggerable with no auth or user interaction. The vuln.today priority label is 'this_week', which aligns with 'patchable DoS, no active exploitation' rather than an emergency. One data conflict to note: the input Tags label this 'Information Disclosure', which contradicts the availability-only CVSS vector - the scored and described impact is CPU exhaustion, so treat this as a DoS issue and verify any info-disclosure framing against the vendor advisory.

Exploit ScenarioDerived

An application that decodes attacker-controlled ASN.1 using Convert::ASN1 - for example an LDAP client/server or other protocol parser whose grammar permits a REAL value - receives a crafted BER REAL in which a one-byte element declares an oversized exponent length. The decoder reads the exponent from outside the element, the mantissa length becomes -1, and Perl interprets the negative length as an offset from the end of the string, so each value's mantissa loop iterates over nearly all remaining input; a list of such values exhausts CPU. No standalone exploit is published beyond the regression test shipped in the fix commit.

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

CPU exhaustion in the Perl module Convert::ASN1 before 0.37 lets remote attackers who can supply ASN.1 data for decoding stall a process by embedding a binary REAL element whose exponent length is never bounds-checked, so the mantissa loop walks nearly the entire remaining input buffer for every such value. The flaw is reachable wherever an application decodes untrusted, externally-supplied ASN.1 with a template that permits the REAL type; per the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) no authentication or user interaction is needed, but availability is the only impacted property, and applications that only decode trusted internal data are not meaningfully exposed. No public exploit code or active exploitation has been identified at time of analysis (EPSS 0.21%, 11th percentile; SSVC exploitation: none), and the vendor has released Convert::ASN1 0.37 with the fix.

RemediationAI

Vendor-released patch: Convert::ASN1 0.37 - upgrade from any earlier version (0.36 and below) via CPAN, and refresh pinned or vendored copies and fat-packed dependencies so the fixed _decode.pm is actually the one loaded; verify with the upstream regression test t/23dec_real.t, which must reject the one-byte overread REAL and any exponent longer than 4 bytes with 'REAL decode error'. If 0.37 cannot be deployed immediately, the exposure is deployment-dependent and can be reduced by processing attacker-supplied ASN.1 only with templates that do not declare REAL, by rejecting or pre-scanning untrusted input for universal tag 0x09, and by wrapping decode calls in a time limit (Perl's alarm/eval pattern, as the upstream tests do) so a pathological REAL list cannot hold a worker indefinitely - noting these shrink the attack surface rather than fixing the unchecked length arithmetic, and the tag filtering must be applied before decoding to be effective. Instances that only decode trusted, internally generated ASN.1 are low priority relative to internet-facing parsers, but should still be brought onto 0.37 as part of normal maintenance.

Affected ProductsAI

All releases of the Perl distribution Convert::ASN1 prior to 0.37 (i.e. 0.36 and earlier) are affected; version 0.37, published by TIMLEGGE on CPAN, is the first fixed release. Every consumer that embeds Convert::ASN1 and decodes attacker-influenced ASN.1 with a grammar allowing REAL inherits the exposure - including Perl applications performing certificate, PKCS or protocol message parsing - while decoders restricted to INTEGER, OCTET STRING and similar types cannot reach _dec_real and are unaffected. The upstream changelog is at https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes and the patch is at https://github.com/cpan-authors/perl-Convert-ASN1/commit/6158dbb33cc3d248a95b4ab4948a135e18141b51.patch; project issues are tracked at https://github.com/cpan-authors/perl-Convert-ASN1/issues and the coordinated disclosure notice is at https://seclists.org/oss-sec/2026/q4/797 (EUVD-2026-130801).

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 BER/DER encoder/decoder used for X.509, PKCS, LDAP, SNMP and other ASN.1-based protocols; binary REAL values (universal tag 0x09) encode a sign/base/scaling/exponent-format byte followed by a variable-length exponent and mantissa. The bug is a CWE-130 length-parameter inconsistency in _dec_real: the exponent length read from the element is never validated against the bytes actually available, so for a minimal one-byte REAL the exponent byte is taken from beyond the element boundary and the computed mantissa length becomes -1, which Perl's substr interprets as an offset from the end of the string - yielding a mantissa spanning nearly all trailing input, with each such value forcing a full mantissa loop and each decoded value derived from bytes outside the element (the reason the advisory is also tagged for information disclosure). The long-form exponent branch additionally omitted the extra length octet when sizing the mantissa. The upstream fix (commit 6158dbb3) computes the short-/long-form overhead and rejects the element with a 'REAL decode error' when the exponent length exceeds 4 bytes or exceeds the available content, explicitly because an exponent over 4 bytes would be promoted to a bigint and make pow() run unbounded; a regression suite (t/23dec_real.t) covers the overread, the long-form off-by-one, the 4-byte boundary and the >4-byte rejection, including a 10-second alarm guard to fail rather than hang.

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-controlled ASN.1 is typically network-delivered and decoded with no auth or interaction (AV:N/AC:L/PR:N/UI:N); the only impact is CPU-exhaustion DoS, so 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 (HIGH)
CVE Published
Nov 20, 2026 - 00:24 cve.org
HIGH 7.5
CVE Published
Nov 20, 2026 - 00:24 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unchecked exponent length in binary REAL decoding.

Binary REAL decoding never bounds-checks the exponent length against the available content. For a minimal one-byte binary REAL, the exponent byte is read from outside the element, making the mantissa length -1. Perl reads a negative length as an offset from the end of the string, so the mantissa is nearly all of the input that follows the element. The long-form exponent path also omits the extra length octet when sizing the mantissa.

An attacker who controls the decoded data can exhaust CPU with a list of such values, as each mantissa loop iterates over the remaining input. The decoded values are also computed from bytes outside each element.

Executive ViewAI

Why It Matters

CVE-2026-126576 is a high-severity CPU exhaustion vulnerability in the widely used Perl module Convert::ASN1, affecting any application that decodes untrusted ASN.1 data with a template permitting the REAL type. Successful exploitation can stall processes, causing service disruptions and potential downtime for affected business services. Leadership should prioritize patching because the vulnerability is remotely triggerable without authentication, though no active exploitation has been observed and the EPSS score is low.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
common Perl/CPAN ASN.1 library, a Net::LDAP dependency
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