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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libdbi-perl | 1.653-1 | — |
| Debian 13 | libdbi-perl | No fix yet | — |
| Debian 12 | libdbi-perl | 1.643-4+deb12u3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | perl-DBI | 1.641-5.el8_10 | RLSA-2026:99210, RLSA-2026:99162 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl-DBI | 1.655-1 | — |
Advisories 14
- RLSA-2026:99210 Important: perl-DBI:1.641 security update Rocky Linux Security Advisories · Nov 13, 2026
- RLSA-2026:99162 Important: perl-DBI security update Rocky Linux Security Advisories · Nov 13, 2026
- WID-SEC-2026-4090 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- NCSC-2026-0444 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Oct 21, 2026
- ALAS2-2026-3985 Important: perl-DBI security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- USN-8912-1 libdbi-perl vulnerabilities Ubuntu Security Notices (USN) · Oct 12, 2026
- ALAS2023-2026-3191 Important: perl-DBI security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- SUSE-SU-2026:4612-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Oct 10, 2026
- SUSE-SU-2026:23952-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Oct 2, 2026
- openSUSE-SU-2026:21960-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Oct 1, 2026
- SUSE-SU-2026:23919-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Sep 30, 2026
- SUSE-SU-2026:4386-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Sep 29, 2026
- SUSE-SU-2026:4346-1 Security update for perl-DBI SUSE / openSUSE Security Updates · Sep 25, 2026
- openSUSE-SU-2026:11754-1 perl-DBI-1.653.0-1.1 on GA media SUSE / openSUSE Security Updates · Sep 12, 2026