CVE-2026-108518
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
Check your servers for CVE-2026-108518
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-108518 affects dbi, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Oct 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-843 Access of Resource Using Incompatible Type
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
DBI
package
DBI |
affected before 1.656
Other versions: unaffected
|
Is my server affected?
Find the installed version of dbi and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i dbi
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-108518 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-108518RHEL, Rocky, Alma, Fedora
rpm -q dbi
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-108518Alpine
apk list --installed | grep -i dbiWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-108518
trivy image --scanners vuln IMAGE | grep CVE-2026-108518
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- https://github.com/perl5-dbi/dbi/commit/c2ff4df575d7af625bb4d0d1ef7539f90b22d8b2.patch github.com · patch
- https://metacpan.org/release/HMBRAND/DBI-1.656/changes metacpan.org · release notes
Exploits and proof of concept
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-7393-6f8r-fhh3 github.com · vendor advisory, exploit
Other references
Source: the record CVE-2026-108518 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse