Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach socket served by asn_recv
-
ExploitSend single truncated BER header
-
ExecutionMSG_PEEK loop doubles peek buffer unbounded
-
ImpactFatal 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in Convert::ASN1 Perl Resource Exhaustion Flaws
View all 8The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-130800
GHSA-vgrj-p28p-6383
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB