CPANSA-DBI-2026-88816: DBI vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-09-28T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-09-28T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 7.5 | Severity | High |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName.
fetchrow_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.
This can be triggered with the following code:
my $dbh = DBI->connect( "dbi:ExampleP:", "", "",
{ RaiseError => 0, PrintError => 0 } );
$dbh->{FetchHashKeyName} = 42;
my $sth = $dbh->prepare("select mode, size, name from .");
$sth->execute;
$sth->fetchrow_hashref;
Vulnerabilities
CVE-2026-88816
Vulnerability DescriptionDBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName.
fetchrow_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.
This can be triggered with the following code:
my $dbh = DBI->connect( "dbi:ExampleP:", "", "",
{ RaiseError => 0, PrintError => 0 } );
$dbh->{FetchHashKeyName} = 42;
my $sth = $dbh->prepare("select mode, size, name from .");
$sth->execute;
$sth->fetchrow_hashref;
| Weakness | CWE-843 : Access of Resource Using Incompatible Type ('Type Confusion') |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| DBI less than 1.654 |
|
Fixed
- DBI greater than or equal 1.654
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-DBI-2026-88816 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-dbi-2026-88816.json - https://github.com/perl5-dbi/dbi/commit/70962570212dc60a5428098cf2a0462ad5945851.patch external
https://github.com/perl5-dbi/dbi/commit/70962570212dc60a5428098cf2a0462ad5945851.patch - https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq external
https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq - https://metacpan.org/release/HMBRAND/DBI-1.654/changes external
https://metacpan.org/release/HMBRAND/DBI-1.654/changes - http://www.openwall.com/lists/oss-security/2026/09/28/13 external
http://www.openwall.com/lists/oss-security/2026/09/28/13 - https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq external
https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq - CVE-2026-88816 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-88816
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Mon Sep 28 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/