# CVE-2026-88816: DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in FetchHashKeyName

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T16:04:40.458Z
- Modified: 2026-09-30T20:17:35.557Z
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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;

(As written by CVE List.)

## Affected

- DBI: before 1.654

## References

- <https://github.com/perl5-dbi/dbi/security/advisories/GHSA-f4qx-mr9m-q2hq> (exploit, 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>

## Sources

- CVE List: [CVE-2026-88816](https://www.cve.org/CVERecord?id=CVE-2026-88816), CVE Terms of Use, modified 2026-09-30
- NVD: [CVE-2026-88816](https://nvd.nist.gov/vuln/detail/CVE-2026-88816), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-88816 · Whole record: https://cve.day/CVE-2026-88816.json · Rebuilt by cve.day 2026-11-25T22:59:41.354Z
