Vulnerability · Published Oct 20, 2026 · Assigned by CPANSec

CVE-2026-108518DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an {attr} element

Low 2.9

In plain English

A low-severity type confusion in DBI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.9Low
Exploit odds (30 days)0.3%top 83.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an {attr} element. An {attr} element names a database handle attribute, which dbi_profile reads from the handle's inner hash. It expects the inner handle as a reference and dereferences it, but a handle that is being destroyed hands back the inner hash itself, so the dereference yields the hash's bucket array. A type check on that pointer usually fails and the call goes unprofiled. When the memory it addresses passes the check, the attribute lookup dereferences a NULL or invalid pointer and the process dies on SIGSEGV. The Path is set by the application, by the Profile handle attribute, or by the DBI_PROFILE environment variable, so `DBI_PROFILE={ImplementorClass}` can crash an unmodified program.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libdbi-perlno fix listedDEBIAN-CVE-2026-108518
Debian:13libdbi-perlno fix listedDEBIAN-CVE-2026-108518
Debian:14libdbi-perl1.656-1DEBIAN-CVE-2026-108518
Ubuntu:22.04:LTSlibdbi-perlno fix listedUBUNTU-CVE-2026-108518
Ubuntu:24.04:LTSlibdbi-perlno fix listedUBUNTU-CVE-2026-108518
Ubuntu:26.04:LTSlibdbi-perlno fix listedUBUNTU-CVE-2026-108518
Ubuntu:26.10libdbi-perlno fix listedUBUNTU-CVE-2026-108518

Affected products (as reported)

VendorProductVersions
DBI 0 – before 1.656

Weakness: CWE-843 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

References