{"id":"CVE-2026-107373","state":"PUBLISHED","title":"ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument","description":"ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument.\n\nThe typemap uses\n\n    $var = std::string( SvPV_nolen($arg), SvCUR($arg) )\n\nHowever, evaluation order for C++ arguments is not specified, and some compilers may produce code that evalutes SvCUR($arg) first.\n\nWhen $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.","publishedAt":"2026-10-10T12:44:08.099Z","updatedAt":"2026-10-16T15:39:45.111Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["ExtUtils-Typemaps-Default"],"affected":[{"packageName":"ExtUtils-Typemaps-Default","packageURL":"pkg:cpan/ExtUtils-Typemaps-Default","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.06","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["ExtUtils::Typemaps::STL::String"],"programFiles":["lib/ExtUtils/Typemaps/STL/String.pm"],"repo":"https://github.com/tsee/extutils-typemap-default"}],"references":["https://metacpan.org/release/SMUELLER/ExtUtils-Typemaps-Default-1.06/changes","https://github.com/tsee/extutils-typemap-default/commit/a6b9c298b34ddadc582961403e715d292f82a22d","https://rt.cpan.org/Public/Bug/Display.html?id=94110","https://www.cve.org/CVERecord?id=CVE-2026-80490"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/107xxx/CVE-2026-107373.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-107373","state":"PUBLISHED","datePublished":"2026-10-10T12:44:08.099Z","dateUpdated":"2026-10-16T15:39:45.111Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-10-07T21:01:49.472Z"},"containers":{"cna":{"title":"ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument","descriptions":[{"lang":"en","value":"ExtUtils::Typemaps::STL::String versions before 1.06 for Perl T_STD_STRING typemap may read the SV length before stringifying the argument.\n\nThe typemap uses\n\n    $var = std::string( SvPV_nolen($arg), SvCUR($arg) )\n\nHowever, evaluation order for C++ arguments is not specified, and some compilers may produce code that evalutes SvCUR($arg) first.\n\nWhen $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":[{"packageName":"ExtUtils-Typemaps-Default","packageURL":"pkg:cpan/ExtUtils-Typemaps-Default","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.06","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["ExtUtils::Typemaps::STL::String"],"programFiles":["lib/ExtUtils/Typemaps/STL/String.pm"],"repo":"https://github.com/tsee/extutils-typemap-default"}],"references":[{"url":"https://metacpan.org/release/SMUELLER/ExtUtils-Typemaps-Default-1.06/changes","tags":["release-notes"]},{"url":"https://github.com/tsee/extutils-typemap-default/commit/a6b9c298b34ddadc582961403e715d292f82a22d"},{"url":"https://rt.cpan.org/Public/Bug/Display.html?id=94110","tags":["issue-tracking"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-80490","tags":["related"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-10-10T12:44:08.099Z"},"solutions":[{"lang":"en","value":"Upgrade to ExtUtils::Typemaps::Default version 1.06 or later.\n\nRebuild any modules that use ExtUtils::Typemaps::Default as part of their build process."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2014-03-22T00:00:00.000Z","value":"Issue reported in bugtracker for ExtUtils::Typemaps::Default version 1.05."},{"lang":"en","time":"2014-06-10T00:00:00.000Z","value":"Fix committed to the repository. Bugtracker issue closed."},{"lang":"en","time":"2026-09-30T00:00:00.000Z","value":"Issue reported to CPANSec."},{"lang":"en","time":"2026-10-08T00:00:00.000Z","value":"ExtUtils::Typemaps::Default version 1.06 released with a fix."}],"workarounds":[{"lang":"en","value":"For deployments that cannot be upgraded, ensure that arguments passed to modules that use ExtUtils::Typemaps::Default are strngified."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-10-16T15:38:43.311020Z","id":"CVE-2026-107373","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T15:39:45.111Z"}}]}}}