{"id":"CVE-2026-88816","state":"PUBLISHED","title":"DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName","description":"DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName.\n\nfetchrow_hashref uses the string pointer of the FetchHashKeyName attribute as the key name without stringifying it first. When FetchHashKeyName has been set to an integer (IV) or floating-point (NV) value, that pointer is invalid, so reading the key name triggers a segmentation fault.\n\nThis can be triggered with the following code:\n\n   my $dbh = DBI->connect( \"dbi:ExampleP:\", \"\", \"\",\n       { RaiseError => 0, PrintError => 0 } );\n   $dbh->{FetchHashKeyName} = 42;\n\n   my $sth = $dbh->prepare(\"select mode, size, name from .\");\n   $sth->execute;\n   $sth->fetchrow_hashref;","publishedAt":"2026-09-28T16:04:40.458Z","updatedAt":"2026-09-30T19:51:20.177Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["DBI"],"affected":[{"packageName":"DBI","packageURL":"pkg:cpan/DBI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.654","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["DBI"],"programFiles":["DBI.xs"],"programRoutines":[{"name":"DBD::_::st::fetchrow_hashref"}],"repo":"https://github.com/perl5-dbi/dbi"}],"references":["https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq","https://github.com/perl5-dbi/dbi/commit/70962570212dc60a5428098cf2a0462ad5945851.patch","https://metacpan.org/release/HMBRAND/DBI-1.654/changes","http://www.openwall.com/lists/oss-security/2026/09/28/13"],"weaknesses":["CWE-843"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/88xxx/CVE-2026-88816.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-88816","state":"PUBLISHED","datePublished":"2026-09-28T16:04:40.458Z","dateUpdated":"2026-09-30T19:51:20.177Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-09-10T08:47:49.901Z"},"containers":{"cna":{"title":"DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName","descriptions":[{"lang":"en","value":"DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName.\n\nfetchrow_hashref uses the string pointer of the FetchHashKeyName attribute as the key name without stringifying it first. When FetchHashKeyName has been set to an integer (IV) or floating-point (NV) value, that pointer is invalid, so reading the key name triggers a segmentation fault.\n\nThis can be triggered with the following code:\n\n   my $dbh = DBI->connect( \"dbi:ExampleP:\", \"\", \"\",\n       { RaiseError => 0, PrintError => 0 } );\n   $dbh->{FetchHashKeyName} = 42;\n\n   my $sth = $dbh->prepare(\"select mode, size, name from .\");\n   $sth->execute;\n   $sth->fetchrow_hashref;"}],"affected":[{"packageName":"DBI","packageURL":"pkg:cpan/DBI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.654","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["DBI"],"programFiles":["DBI.xs"],"programRoutines":[{"name":"DBD::_::st::fetchrow_hashref"}],"repo":"https://github.com/perl5-dbi/dbi"}],"references":[{"url":"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq","tags":["vendor-advisory"]},{"url":"https://github.com/perl5-dbi/dbi/commit/70962570212dc60a5428098cf2a0462ad5945851.patch","tags":["patch"]},{"url":"https://metacpan.org/release/HMBRAND/DBI-1.654/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","description":"CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-09-28T16:04:40.458Z"},"credits":[{"lang":"en","type":"finder","value":"Harsh Raj Singhania"}],"solutions":[{"lang":"en","value":"Upgrade to DBI 1.654 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/09/28/13"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-09-28T18:10:35.512Z"}},{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq","tags":["exploit"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-09-30T19:51:15.598426Z","id":"CVE-2026-88816","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-09-30T19:51:20.177Z"}}]}}}