ExtUtils::Typemaps::STL::Vector versions before 1.05 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.
Advisories

No advisories yet.

Fixes

Solution

Upgrade to ExtUtils::Typemaps::Default version 1.07 or later. (Note that while this issue was fixed in version 1.05, a related issue was fixied in 1.07.) Rebuild any modules that use ExtUtils::Typemaps::Default as part of their build process.


Workaround

No workaround given by the vendor.

History

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

Type Values Removed Values Added
Description ExtUtils::Typemaps::STL::Vector versions before 1.05 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.
Title ExtUtils::Typemaps::STL::Vector versions before 1.05 for Perl allocate a 32 GiB array on an empty list
Weaknesses CWE-191
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-10T12:44:48.076Z

Reserved: 2026-10-08T21:40:58.015Z

Link: CVE-2013-10076

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-10T13:17:30.610

Modified: 2026-10-10T13:17:30.610

Link: CVE-2013-10076

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses