Vulnerability · Published Sep 28, 2026 · Assigned by CPANSec
CVE-2026-88816DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName
High 7.5
In plain English
A high-severity type confusion in DBI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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;
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libdbi-perl | 1.643-4+deb12u3 | DEBIAN-CVE-2026-88816 |
| Debian:13 | libdbi-perl | no fix listed | DEBIAN-CVE-2026-88816 |
| Debian:14 | libdbi-perl | 1.654-1 | DEBIAN-CVE-2026-88816 |
| Ubuntu:22.04:LTS | libdbi-perl | 1.643-3ubuntu0.4 | UBUNTU-CVE-2026-88816 |
| Ubuntu:22.04:LTS | libdbi-perl | 1.643-3ubuntu0.4 | USN-8912-1 |
| Ubuntu:24.04:LTS | libdbi-perl | 1.643-4ubuntu0.4 | USN-8912-1 |
| Ubuntu:24.04:LTS | libdbi-perl | 1.643-4ubuntu0.4 | UBUNTU-CVE-2026-88816 |
| Ubuntu:26.04:LTS | libdbi-perl | 1.647-1ubuntu0.26.04.4 | USN-8912-1 |
| Ubuntu:26.04:LTS | libdbi-perl | 1.647-1ubuntu0.26.04.4 | UBUNTU-CVE-2026-88816 |
| Ubuntu:26.10 | libdbi-perl | no fix listed | UBUNTU-CVE-2026-88816 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| DBI | 0 – before 1.654 |
Weakness: CWE-843 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq vendor-advisory
- https://github.com/perl5-dbi/dbi/commit/70962570212dc60a5428098cf2a0462ad5945851.patch patch
- https://metacpan.org/release/HMBRAND/DBI-1.654/changes release-notes
- http://www.openwall.com/lists/oss-security/2026/09/28/13