CVE-2026-131877: Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unbounded arc length in OBJECT IDENTIFIER decoding and encoding Timothy Legge 20 Nov 2026 02:17 UTC

========================================================================
CVE-2026-131877                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-131877

   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 CPU exhaustion via
unbounded arc length in OBJECT IDENTIFIER decoding and encoding

Description
-----------
Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via
unbounded arc length in OBJECT IDENTIFIER decoding and encoding.

The content of an OBJECT IDENTIFIER or RELATIVE-OID element is passed
to unpack "w*" on decode, and the arcs of an OID string to pack "w*" on
encode. Perl converts each arc to or from its decimal string in time
quadratic in the arc's length, and nothing limits that length.

An attacker who controls the decoded data, or an OID string passed to
encode, can exhaust CPU with a single oversized arc.

Problem types
-------------
- CWE-407 Inefficient Algorithmic Complexity

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

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