Skip to main content

Convert::ASN1 CVE-2026-126568

| EUVDEUVD-2026-130800 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-20 CPANSec GHSA-vgrj-p28p-6383
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 socket served by asn_recv
  2. Exploit
    Send single truncated BER header
  3. Execution
    MSG_PEEK loop doubles peek buffer unbounded
  4. Impact
    Fatal realloc failure crashes process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target process to call Convert::ASN1's asn_recv() on a socket the attacker can send to, and to receive attacker-controlled ASN.1/BER input there; the trigger is a single truncated BER header (truncated tag or absent/incomplete length field) that never satisfies the decode condition, so the fixed pre-0.37 asn_recv loop keeps re-peeking via MSG_PEEK and doubling the buffer. Per the CVSS vector (PR:N/UI:N/AC:L) no authentication, user interaction, or special complexity is needed once that code path is exposed. The principal LIMITING factor is deployment: only applications that use asn_recv for socket receive are affected - code that reads ASN.1 by other means is not - so reachability depends on whether such a service is network-exposed; impact is limited to availability (process crash via fatal, non-eval-catchable realloc failure), with no confidentiality or integrity effect.

Impact

All severity in this CVE comes from a single dimension: availability (CVSS 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - C:N and I:N, so no data exposure or code execution, only A:H). The CVSS vector describes a remote, low-complexity, unauthenticated (PR:N) trigger, and SSVC marks it Automatable:yes with Technical Impact:partial, which is consistent - a single truncated BER header, no handshake or state required. However, the exploitation signals point to opportunistic rather than active targeting: SSVC Exploitation is 'none', there is no CISA KEV listing, and EPSS is only 0.21% (11th percentile). These low exploitation signals are not contradictory - they reflect that this is a crash/DoS (CWE-835-adjacent unbounded allocation), not a code-execution bug, and that it only affects processes that actually call Convert::ASN1's asn_recv on an attacker-reachable socket, which is a narrower population than 'all Convert::ASN1 users'. The vuln.today decision label is 'this_week', which aligns with: easy and automatable to trigger, but impact capped at availability. Net: a genuine, easily-triggered remote DoS worth patching promptly where asn_recv is exposed, but not an emergency RCE - the low EPSS/SSVC-none status indicates no evidence of exploitation, not a data conflict. One aggravating detail from the source evidence: Perl's realloc failure here is fatal and not catchable with eval, so the outcome is a hard process kill rather than a recoverable error.

Exploit ScenarioDerived

An attacker who can reach a network service built on Convert::ASN1 that receives ASN.1/BER via asn_recv sends one truncated BER header (a tag with an absent or incomplete length field). Because MSG_PEEK leaves the data unconsumed and an inverted boolean guard suppresses the need-more-data exit, the peek buffer doubles on every loop pass until Perl's realloc fails fatally and the process dies. No public proof-of-concept is referenced; the attack is network-reachable, low-complexity, and requires no authentication per the CVSS vector.

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

Unbounded memory growth in Convert::ASN1 before 0.37 for Perl allows a remote, unauthenticated sender to exhaust process memory and crash any service that calls asn_recv() on an attacker-reachable socket (CVSS 7.5, availability-only: C:N/I:N/A:H). A single truncated BER header leaves the packet peek loop without a valid exit, so the peek buffer doubles on every MSG_PEEK pass until Perl's realloc fails - a fatal, non-eval-catchable abort. No public exploit has been identified at time of analysis, KEV does not list this issue, and EPSS is low (0.21%, 11th percentile), while SSVC rates it automatable with partial technical impact; severity is entirely availability-related, with no confidentiality or integrity effect.

RemediationAI

Vendor-released patch: Convert::ASN1 0.37, which rewrites the asn_recv() peek loop with a corrected boolean guard plus an explicit incomplete-length exit and bounds buffer growth by doubling from a small base (https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a.patch). Upgrade the module to 0.37 or later and redeploy any long-running daemon that embeds it, since the failure mode is a fatal process abort rather than a catchable exception and a restart alone will not remove the flaw; confirm the installed version with perldoc or the module's $VERSION, as CPAN distributions are frequently vendored inside larger applications. The release notes and changelog are at https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes and the coordinated disclosure write-up is at https://seclists.org/oss-sec/2026/q4/797. No configuration-level workaround is documented in the available sources - the logic error lives inside asn_recv() itself - so operators who cannot immediately upgrade must avoid exposing asn_recv() to untrusted peers, for example by terminating untrusted BER traffic at a gateway or otherwise ensuring only trusted senders can reach that code path, accepting the loss of functionality that restricting those senders implies.

Affected ProductsAI

All releases of the Perl module Convert::ASN1 prior to 0.37 are affected, as published on CPAN by the cpan-authors/perl-Convert-ASN1 project; the fix ships in release 0.37 (TIMLEGGE upload, documented in https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes). Exposure is not universal across users of the library: only applications that perform socket receives through Convert::ASN1::IO's asn_recv() on a channel an attacker can send to are reachable, since code that decodes ASN.1 from memory, files, or other read paths does not enter the vulnerable loop. No CPE identifiers were supplied with this record; the definitive version boundary is 'before 0.37' and the authoritative vendor reference is the upstream commit and issue tracker at https://github.com/cpan-authors/perl-Convert-ASN1/issues.

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; its IO.pm asn_recv() helper reads ASN.1 elements directly from a socket using recv() with the MSG_PEEK flag so that nothing is consumed until a full element can be decoded. The tag/length/value header is parsed in a loop: peek, try to decode the tag byte and then the length, grow the buffer and peek again if more data is needed. The flaw is CWE-835 (loop with an unreachable exit condition) created by two mistakes - an inverted boolean guard ($tb || $pos+$tb < length $buf instead of $tb && ...) means the need-more-data exit stops firing as soon as a tag byte has been decoded, and a second missing exit means the loop also never terminates when asn_decode_length() returns nothing because the length field is absent or incomplete. Because MSG_PEEK leaves the queued datagram untouched, each re-peek returns the same data immediately while the requested buffer size doubles, so allocation grows without bound from one short, truncated header. The upstream fix restructures the loop: it adds an explicit else branch that continues only when the buffer was completely filled, and replaces the unbounded growth-by-declared-length peek with bounded doubling steps (starting at 64 bytes) so the allocation tracks available data rather than the attacker-declared length. The trigger is confirmed as a truncated BER tag or incomplete length field; the underlying socket stack itself is not at fault.

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

A single unauthenticated, low-complexity truncated BER datagram triggers unbounded allocation (AV:N/AC:L/PR:N/UI:N); impact is availability-only process crash, 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:23 cve.org
HIGH 7.5
CVE Published
Nov 20, 2026 - 00:23 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv.

asn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data exit from firing once a tag byte has been decoded. When asn_decode_length returns no value because the length is absent or incomplete, no exit fires for that case either. MSG_PEEK leaves socket data unconsumed, so each re-peek returns at once while the buffer size doubles.

A single truncated BER header sent to a process calling asn_recv doubles the peek buffer until memory is exhausted. Perl's realloc failure is fatal and not catchable with eval.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in the Perl Convert::ASN1 library (versions before 0.37) allows unauthenticated remote attackers to crash any service that processes ASN.1 data over a network socket. This affects Perl-based services throughout the organization that rely on this library, potentially causing service disruptions and operational downtime. Leadership should prioritize patching because the flaw is easy to exploit and can take critical services offline.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
common Perl ASN.1 library, but only asn_recv-based socket services affected
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