Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach ASN.1 decode endpoint
-
DeliveryCraft oversized INTEGER/ENUMERATED element
-
ExploitSubmit to Convert::ASN1 decoder
-
ExecutionQuadratic os2ip bigint loop runs
-
ImpactCPU 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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-130799
GHSA-v88r-r6qc-4386
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB