CVE-2026-126956: Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unlimited recursion depth in constructed-form string decoding
Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unlimited recursion depth in constructed-form string decoding.
Any constructed-form string element causes the decoder to recurse on the element's contents. The BER encoding controls nesting depth at four bytes per level, with no bound checked. Perl recursion is heap-allocated, so the process grows without a stack crash.
An attacker who controls the decoded data can exhaust memory with a small deeply nested constructed string.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Convert-ASN1to a version that resolves this vulnerability.Fixed in 0.37
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Convert::ASN1 before version 0.37 are exposed if they decode BER data that an attacker can control. The impact is memory exhaustion in the decoding process.
What does an attacker need to exploit it?
The attacker needs to supply decoded input containing deeply nested constructed-form string elements. The nesting depth is controlled by the BER encoding, and the decoder does not enforce a limit.
Is a large payload required to cause an outage?
No. A small BER payload can encode enough nested constructed strings to drive unbounded recursive decoding and exhaust process memory.
What version addresses the issue?
Version 0.37 addresses the unlimited recursion depth in constructed-form string decoding. Versions before 0.37 are affected.