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

Published Oct 10, 2026
·
Updated

ExtUtils::Typemaps::STL::String versions before 1.06 for Perl TSTDSTRING typemap may read the SV length before stringifying the argument.

The typemap uses

$var = std::string( SvPVnolen($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.

Affected Software

1 affected component
ExtUtils::Typemaps::STL::String<1.06

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ExtUtils::Typemaps::Default to a version that resolves this vulnerability.

    Fixed in 1.06
  2. Operational

    Rebuild any modules that use ExtUtils::Typemaps::Default as part of their build process.

Event History

Oct 10, 2026
CVE Published
via MITRE·12:44 PM
Data Sourced
via MITRE·12:44 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·01:17 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are exposed if they use the T_STD_STRING typemap from ExtUtils::Typemaps::STL::String before version 1.06 and pass a non-string Perl value, such as an integer, number, or reference, to the mapped argument.

2

What does an attacker need to trigger the failure?

The attacker or other input source would need to cause a non-string value to reach a C++ binding argument that uses the affected T_STD_STRING typemap. On compilers that evaluate SvCUR before stringification, this can yield an invalid length and cause an abort or segmentation fault.

3

What is the available remediation?

Upgrade ExtUtils::Typemaps::STL::String to version 1.06 or later. The issue affects versions before 1.06.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203