Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted ASN.1 message to parser
-
ExploitConstructed BIT STRING with zero-length segments
-
Executionsubstr -1 triggers quadratic copying
-
ImpactMemory 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-130803
GHSA-2gpm-x9q7-6prr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB