CVE-2026-126956: Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unlimited recursion depth in constructed-form string decoding Timothy Legge 20 Nov 2026 02:15 UTC

========================================================================
CVE-2026-126956                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-126956

   Distribution:  Convert-ASN1
       Versions:  before 0.37
       MetaCPAN:  https://metacpan.org/dist/Convert-ASN1
       VCS Repo:  https://github.com/cpan-authors/perl-Convert-ASN1

Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via
unlimited recursion depth in constructed-form string decoding

Description
-----------
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.

Problem types
-------------
- CWE-674 Uncontrolled Recursion

Solutions
---------
Upgrade to Convert-ASN1 0.37 or later.

References
----------
https://github.com/cpan-authors/perl-Convert-ASN1/commit/99a96139a322ba0a5183c7e40a8857f3550daace.patch
https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes
https://github.com/cpan-authors/perl-Convert-ASN1/issues