Skip to main content

Convert::ASN1 EUVDEUVD-2026-130799

| CVE-2026-126540 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-11-20 CPANSec GHSA-v88r-r6qc-4386
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 ASN.1 decode endpoint
  2. Delivery
    Craft oversized INTEGER/ENUMERATED element
  3. Exploit
    Submit to Convert::ASN1 decoder
  4. Execution
    Quadratic os2ip bigint loop runs
  5. Impact
    CPU exhaustion / service denial

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires that an application using Convert::ASN1 before 0.37 decode attacker-controlled ASN.1/BER data containing an INTEGER or ENUMERATED element whose content exceeds four octets, which routes through the os2ip bigint path. In vulnerable versions no configuration is needed to be exposed - there was no length limit at all before this loop ran, so default behavior is affected. The limiting factor is reachability: the attacker must be able to supply ASN.1 input to a decode call (e.g. an LDAP/SNMP/certificate parsing path), and the element must take the >32-bit bigint branch. Authentication requirements follow the CVSS vector (PR:N, unauthenticated) only insofar as the decoder is exposed to untrusted input; the fix introduces a configurable max_int_len (default 1025 bytes) so patched deployments cap content length before decoding.

Impact

This is a genuine but moderate-priority denial-of-service issue, not a high-CVSS-but-low-real-risk artifact. The CVSS 7.5 is driven entirely by availability (AV:N/AC:L/PR:N/UI:N/S:U, C:N/I:N/A:H), consistent with CWE-407 (inefficient algorithmic complexity): an O(n^2) bigint loop in os2ip with no length cap. The signals are internally consistent - network vector and low complexity match a parser that processes attacker-supplied ASN.1 data, and the impact is purely A:H with no confidentiality or integrity effect. The intelligence signals are LOWER than the base score: EPSS is 0.21% (11th percentile), SSVC reports Exploitation: none and Technical Impact: partial, and the issue is not in CISA KEV. SSVC Automatable: yes reflects that a single crafted oversized INTEGER triggers it without per-target tuning, but there is no evidence of active exploitation. Note one metadata conflict: the input Tag 'Information Disclosure' and SSVC 'partial' technical impact are inconsistent with the actual availability-only impact - this is a resource-exhaustion DoS, not disclosure. The vuln.today 'this_week' label aligns with a patch-available, non-emergency DoS: remediate on a normal cycle, not as an incident.

Exploit ScenarioDerived

An application uses Convert::ASN1 (before 0.37) to decode ASN.1/BER data from an untrusted peer - for example LDAP, SNMP, or certificate parsing - and the attacker submits a single INTEGER or ENUMERATED element with a very large content length (thousands of octets). Decoding that one value forces quadratic bigint multiplication in os2ip, pinning a CPU core and stalling the service. No public working exploit is identified at time of analysis, though the patch and its test cases illustrate how a large INTEGER triggers the condition.

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 Perl's Convert::ASN1 module before 0.37 allows remote attackers who can supply decoded ASN.1/BER data to stall a process with a single oversized INTEGER or ENUMERATED element. Any such value longer than four content octets is routed into the os2ip bigint conversion, which performs O(n^2) bigint multiplications and is bounded by no length limit in vulnerable releases, giving availability-only impact (CVSS 3.1: 7.5, AV:N/AC:L/PR:N/UI:N/A:H). Exploitation is assessed as none by SSVC and EPSS is low at 0.21% (11th percentile), no public exploit code has been identified at time of analysis, and a vendor fix shipping in 0.37 caps decoded integer length.

RemediationAI

Upgrade to Convert::ASN1 0.37 or later, the vendor-released patch version, and confirm the change is present by checking that lib/Convert/ASN1/_decode.pm enforces decode_max_int_len (upstream commit https://github.com/cpan-authors/perl-Convert-ASN1/commit/49b362c527e0af05fca9be1e97e4a340d95afa75.patch; release notes at https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes). Once on 0.37, the cap defaults to 1025 bytes and can be tuned per decoder instance via $asn->configure(decode => { max_int_len => 4096 }) when larger values are legitimately required, at the trade-off of permitting proportionally longer bigint work; setting max_int_len to 0 disables the limit entirely and is explicitly not recommended, and negative values are rejected as invalid. Verifying the fix is straightforward because oversized integers now abort with an error mentioning max_int_len rather than being decoded. Because upgrading is the only complete fix, environments that cannot move off an older release must compensate at the boundary: restrict or authenticate access to the service that feeds ASN.1 into a decode call, and reject oversized BER elements at a TLS/proxy or protocol layer before they reach Perl, accepting that this narrows functionality and requires per-application tuning; note that configuring max_int_len is not an option on vulnerable versions, since the setting does not exist there. Track vendor and distribution advisories through https://seclists.org/oss-sec/2026/q4/797 and https://github.com/cpan-authors/perl-Convert-ASN1/issues.

Affected ProductsAI

All releases of the Perl distribution Convert::ASN1 prior to version 0.37 are affected, since every version in that range routes INTEGER and ENUMERATED values longer than four content octets into the quadratic os2ip bigint path with no length ceiling. The fix ships in Convert::ASN1 0.37 (MetaCPAN release TIMLEGGE/Convert-ASN1-0.37), whose change log is listed at https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes, with the code change visible in commit https://github.com/cpan-authors/perl-Convert-ASN1/commit/49b362c527e0af05fca9be1e97e4a340d95afa75.patch. Exposure is transitive: any Perl application or service that decodes untrusted ASN.1/BER through this module - for example LDAP, SNMP or certificate-parsing code paths - inherits the behavior, and because no configuration was required in vulnerable versions, default installs are affected. No CPE strings were supplied in the source data, so downstream packaging (vendored copies, CPAN dependency chains, distribution packages pinning older versions) should be inventoried from dependency manifests rather than from CPE matching. Additional discussion is available in the oss-security advisory at https://seclists.org/oss-sec/2026/q4/797 and the tracker entry at https://nvd.nist.gov/vuln/detail/CVE-2026-126540.

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 BER/DER encoder/decoder used by Perl applications that parse ASN.1 structured data. When a decoded INTEGER or ENUMERATED element exceeds 32 bits, the module hands its raw content octets to an internal os2ip routine that accumulates the value with $result = ($result * 256) + $octet. Because the accumulator is a Math::BigInt (or the configured bigint backend) that grows by one octet per iteration, decoding an n-octet integer costs O(n^2) bigint work, and the module applied no bound on content length before entering the loop - the classic algorithmic-complexity weakness of CWE-407. The upstream commit 49b362c527e0af05fca9be1e97e4a340d95afa75 introduces a decode_max_int_len option checked in _dec_integer before os2ip is called, defaulting to 1025 bytes (enough for an RSA-8192 modulus with its leading sign byte), rejecting negative limits outright and treating 0 as 'no limit (not recommended)'. The accompanying test file t/20integer_max_len.t exercises the default cap, exact-boundary acceptance, custom caps, the disable switch and the negative-value error, confirming the fix lands on the >32-bit branch only, while the small native four-octet path is unaffected. Note that the supplied feed tag 'Information Disclosure' does not match the assessed availability-only impact; no CPE identifiers were provided in the input to enumerate further affected packages.

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

DescriptionCVE.org

Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip.

Every INTEGER or ENUMERATED longer than four content octets reaches os2ip, which iterates over each content octet with $result = ($result * 256) + $octet. Each multiplication operates on a bigint that grows by one octet per step, so decoding an n-octet value takes O(n^2) bigint work. Nothing limits content length before this loop runs.

An attacker who controls the decoded data can exhaust CPU with a single oversized INTEGER or ENUMERATED value.

Executive ViewAI

Why It Matters

The Convert::ASN1 Perl module (versions before 0.37) is vulnerable to CPU exhaustion when processing malicious ASN.1 data, potentially causing service disruptions for applications that rely on this library. This affects any system running vulnerable versions, but exploitation requires the ability to supply crafted input; no active exploitation has been observed. Leadership should prioritize patching to maintain availability of dependent services.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

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

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