Live threats

All CVEs

CVE-2026-107373

Uninitialized Memory Read in Perl ExtUtils::Typemaps::STL::String

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Oct 10, 2026
Updated
Oct 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

What happens

ExtUtils::Typemaps::STL::String before version 1.06 for Perl contains an uninitialized memory read vulnerability in the T_STD_STRING typemap. The evaluation order of C++ arguments is unspecified, which may cause some compilers to evaluate SvCUR() before stringifying the argument. When the argument is not a string, SvCUR returns an invalid value, causing program aborts or segmentation faults.

Show the original NVD text

ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument. The typemap uses $var = std::string( SvPV_nolen($arg), SvCUR($arg) ) However, evaluation order for C++ arguments is not specified, and some compilers may produce code that evalutes SvCUR($arg) first. When $arg is not a string (for example, an interger, number or a reference) then SvCUR will return an invalid value, and the program may abort or segfault.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.06

Update ExtUtils::Typemaps::STL::String to version 1.06 or later.

Vendor advisory · metacpan.org ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.