CVE-2026-107794

ExtUtils::Typemaps::STL::List versions before 1.07 for Perl allocate a 32 GiB array on an empty list

Published Oct 10, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
ExtUtils::Typemaps::STL::List versions before 1.07 for Perl allocate a 32 GiB array on an empty list.

The OUTPUT typemaps call av_extend( av, len-1 ). On an empty list, this undeflows, and av_extend will allocate an array with 2^32 slots, leading to memory exhaustion.

Note that a similar issue was fixed in ExtUtils::Typemaps::STL::Vector version 1.05.

Analysis

AI-generated

Technical impact

ExtUtils::Typemaps::STL::List, used in Perl, has a flaw that causes it to allocate a 32 GiB array when invoked on an empty list. The underlying bug stems from a buffer underflow: the code calls av_extend(av, len-1 and for an empty list, len is zero, so len-1 underflows to an extremely large number. This overlarge allocation can exhaust system memory, potentially crashing the Perl interpreter or any process building or loading the module. The weakness is an integer underflow/overflow, classified as CWE-191.

Affected Systems

The vulnerability affects ExtUtils::Typemaps::STL::List versions earlier than 1.07 intended for the Perl environment. It can impact any Perl application or module that includes this typemap during compilation or runtime. The referenced bug was similarly addressed in ExtUtils::Typemaps::STL::Vector 1.05, but the list typemap remains vulnerable until its 1.07 patch.

Risk and Exploitability

The CVSS score is 7.5. Memory exhaustion is a high‑impact denial of service. The EPSS score is 0.00185, indicating a very low probability of exploitation, and the vulnerability is not currently listed in CISA KEV. The likely attack vector involves an attacker having the ability to install or compile Perl modules that depend on the vulnerable typemap. This could occur locally on a system where the user runs a Perl script or builds a module, or remotely if a web application relies on the typemap during request processing. An attacker could trigger the bug by constructing or loading an empty list, thus exhausting memory.

Remediation

Vendor Solution

Upgrade to ExtUtils::Typemaps::Default version 1.07 or later. Rebuild any modules that use ExtUtils::Typemaps::Default as part of their build process.


OpenCVE Recommended Actions

  • Upgrade to ExtUtils::Typemaps::Default version 1.07 or later.
  • Rebuild any Perl modules that depend on ExtUtils::Typemaps::Default after applying the upgrade.
  • If an upgrade is not immediately possible, temporarily restrict the memory usage of Perl processes or isolate them in containers to mitigate potential exhaustion.

Generated by OpenCVE AI on October 17, 2026 at 08:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Perl
Perl extutils::typemaps::stl::list
Vendors & Products Perl
Perl extutils::typemaps::stl::list
Type Values Removed Values Added
Description ExtUtils::Typemaps::STL::List versions before 1.07 for Perl allocate a 32 GiB array on an empty list. The OUTPUT typemaps call av_extend( av, len-1 ). On an empty list, this undeflows, and av_extend will allocate an array with 2^32 slots, leading to memory exhaustion. Note that a similar issue was fixed in ExtUtils::Typemaps::STL::Vector version 1.05.
Title ExtUtils::Typemaps::STL::List versions before 1.07 for Perl allocate a 32 GiB array on an empty list
Weaknesses CWE-191
References
Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Oct 16, 2026, 7:25 PM
Reserved
Oct 8, 2026, 9:16 PM
Status
Deferred
Published
Oct 10, 2026, 1:17 PM
Modified
Oct 16, 2026, 8:17 PM