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.
Published: 2026-10-10
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Memory exhaustion leading to denial of service
Action: Immediate patch
AI Analysis

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.

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

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

History

Fri, 16 Oct 2026 20:30:00 +0000

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'}


Sun, 11 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Perl
Perl extutils::typemaps::stl::list
Vendors & Products Perl
Perl extutils::typemaps::stl::list

Sat, 10 Oct 2026 13:00:00 +0000

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

Subscriptions

Perl Extutils::typemaps::stl::list
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-16T19:25:02.591Z

Reserved: 2026-10-08T21:16:53.596Z

Link: CVE-2026-107794

cve-icon Vulnrichment

Updated: 2026-10-16T19:24:42.306Z

cve-icon NVD

Status : Deferred

Published: 2026-10-10T13:17:31.357

Modified: 2026-10-16T20:17:18.793

Link: CVE-2026-107794

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T09:00:08Z

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)