CVE-2026-107373: ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument
Perl ExtUtils::Typemaps::STL::String before 1.06 may read an SV length before stringifying arguments.
Robert Rothenberg reported CVE-2026-107373 on oss-security for Perl's ExtUtils::Typemaps::STL::String, part of ExtUtils-Typemaps-Default. Versions before 1.06 may read a Perl SV's length in the T_STD_STRING typemap before the argument is stringified, which can cause incorrect memory access. The post does not describe exploitation in the wild.
- Affects ExtUtils::Typemaps::STL::String before 1.06
- T_STD_STRING may read an SV length before stringifying
- Disclosed on oss-security by Robert Rothenberg
- No active exploitation is described
Vulnerabilities mentionedAll →
- CVE-2026-1073739.1—Out-of-bounds read in ExtUtils::Typemaps::STL::Stringpublished · CPAN ExtUtils::Typemaps::STL::String
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-107373 | Out-of-bounds read in ExtUtils::Typemaps::STL::String ExtUtils::Typemaps::STL::String before 1.06 provides a T_STD_STRING typemap that builds a C++ std::string with std::string(SvPV_nolen($arg), SvCUR($arg)). C++ does not define argument evaluation order, so some compilers may evaluate SvCUR before SvPV_nolen has stringified the Perl SV. If the argument is not already a string—an integer, number, or reference—SvCUR can return an invalid length and the process may abort or segfault (CWE-125, out-of-bounds read). Perl XS or C++ bindings generated from this typemap are affected when non-string values reach that conversion; the practical impact described is a crash, not confirmed code execution. There is no known public proof of concept, no confirmed in-the-wild exploitation, no CVSS score yet, and the issue is not on the CISA KEV list. |
Posted by Robert Rothenberg on Oct 10 ======================================================================== https://metacpan.org/dist/ExtUtils-Typemaps-Default VCS...
This source does not provide full text. Read it at seclists.org.