Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-78030 EUVD-2026-83584

DBI versions before 1.653 for Perl load arbitrary modules via unvalidated dbm_type and dbm_mldbm attributes in DBD::DBM

Published Sep 19, 2026 · Updated Sep 20, 2026 · Assigned by CPANSec

Description

DBI versions before 1.653 for Perl load arbitrary modules via unvalidated dbm_type and dbm_mldbm attributes in DBD::DBM.

DBD::DBM passes the dbm_type and dbm_mldbm connect attributes to require without checking that the value names a module. require treats a path-shaped string as a literal filename and does not consult @INC, so the attribute chooses the file that Perl loads and runs.

The MLDBM::Serializer:: prefix that DBD::DBM prepends to dbm_mldbm is not a boundary: only the :: separators are rewritten to /, so a value containing / traverses out of the serializer directory. The value is also assigned to $MLDBM::Serializer, which MLDBM requires the same way when it ties the table.

A caller that lets an untrusted party influence either attribute, for example through a DSN fragment or a parameter that selects a storage backend, runs the file-scope code of whatever module the value names.

For example,

my $dsn = "dbi:DBM:f_dir=/var/db;dbm_type=../../Untrusted.pm"
my $dbh = DBI->connect( $dsn );

Note that DBD::Gofer forwards connect attributes to the server side, and DBI::ProxyServer checks only that a DSN starts with a driver prefix.

Affected products

VendorProductAffectedFixed
— DBI < 1.653 1.653

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libdbi-perl 1.653-1 —
Debian 13 libdbi-perl No fix yet —
Debian 12 libdbi-perl 1.643-4+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libdbi-perl No fix yet —
Ubuntu 26.04 LTS libdbi-perl 1.647-1ubuntu0.26.04.4 USN-8912-1
Ubuntu 24.04 LTS libdbi-perl 1.643-4ubuntu0.4 USN-8912-1
Ubuntu 22.04 LTS libdbi-perl 1.643-3ubuntu0.4 USN-8912-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libdbi-perl 1.643-1ubuntu0.1+esm4 USN-8912-1
Ubuntu Pro 18.04 LTS libdbi-perl 1.640-1ubuntu0.3+esm4 USN-8912-1
Ubuntu Pro 16.04 LTS libdbi-perl 1.634-1ubuntu0.2+esm5 USN-8912-1
Ubuntu Pro 14.04 LTS libdbi-perl 1.630-1ubuntu0.1~esm9 USN-8912-1

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 perl-DBI 1.641-5.el8_10 RLSA-2026:99210, RLSA-2026:99162
ReleasePackageFixed inAdvisory
SLES 15 SP7 perl-DBI 1.647.0-150600.12.21.1 SUSE-SU-2026:4386-1
SLES 15 SP6 perl-DBI 1.647.0-150600.12.21.1 SUSE-SU-2026:4386-1
SLES 15 SP5 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
SLES 15 SP4 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
SLES 12 SP5 perl-DBI 1.628-5.24.1 SUSE-SU-2026:4346-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 perl-DBI 1.647.0-160000.6.1 SUSE-SU-2026:23919-1
SLES for SAP 15 SP6 perl-DBI 1.647.0-150600.12.21.1 SUSE-SU-2026:4386-1
SLES for SAP 15 SP5 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
SLES for SAP 15 SP4 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
SLES 16.0 perl-DBI 1.647.0-160000.6.1 SUSE-SU-2026:23919-1
SLE Micro 6.2 perl-DBI 1.647.0-160000.6.1 SUSE-SU-2026:23952-1
SLE HPC 15 SP5 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
SLE HPC 15 SP4 perl-DBI 1.642-150200.3.26.1 SUSE-SU-2026:4612-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-DBI 1.653.0-1.1 openSUSE-SU-2026:11754-1
openSUSE Leap 16.0 perl-DBI 1.647.0-160000.6.1 openSUSE-SU-2026:21960-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-DBI +1 1.653-1.amzn2023.0.1 ALAS2023-2026-3191
Amazon Linux 2 perl-DBI 1.627-4.amzn2.0.8 ALAS2-2026-3985

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 perl-DBI 1.655-1 —

Advisories 14

References