CVE-2026-107373
AI summary
The T_STD_STRING typemap in ExtUtils::Typemaps::STL::String for Perl before 1.06 may read the SV length before stringifying the argument, depending on compiler evaluation order. With non-string arguments (e.g. numbers or references) this yields an invalid length, causing out-of-bounds reads, aborts or segfaults. Critical (9.1); upgrade to 1.06.
Official description
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.
- Published
- 2026-10-10 13:17 UTC
- Modified
- 2026-10-16 16:16 UTC
- CVSS
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - EPSS
- 0.65% (percentile 46)
- ENISA EUVD
- EUVD-2026-96314
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
- CWE
- CWE-125
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Scope
- unchanged
- Confidentiality
- high
- Integrity
- none
- Availability
- high
References
- NVD · CVE.org
- github.com
https://github.com/tsee/extutils-typemap-default/commit/a6b9c298b34ddadc582961403e715d292f82a22d - metacpan.org
https://metacpan.org/release/SMUELLER/ExtUtils-Typemaps-Default-1.06/changes - rt.cpan.org
https://rt.cpan.org/Public/Bug/Display.html?id=94110 - www.cve.org
https://www.cve.org/CVERecord?id=CVE-2026-80490