CVE-2026-78030DBI versions before 1.653 for Perl load arbitrary modules via unvalidated dbm_type and…
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-78030 | |
| Ubuntu 26.04 | libdbi-perl | Fixed | 1.647-1ubuntu0.26.04.4 | UBUNTU-CVE-2026-78030 |
| Ubuntu 24.04 | libdbi-perl | Fixed | 1.643-4ubuntu0.4 | UBUNTU-CVE-2026-78030 |
| Ubuntu 22.04 | libdbi-perl | Fixed | 1.643-3ubuntu0.4 | UBUNTU-CVE-2026-78030 |
| Ubuntu 20.04 | libdbi-perl | Fix pending | 1.643-1ubuntu0.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-78030 |
| Ubuntu 18.04 | libdbi-perl | Fix pending | 1.640-1ubuntu0.3+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-78030 |
| Ubuntu 16.04 | libdbi-perl | Fix pending | 1.634-1ubuntu0.2+esm5 (Ubuntu Pro) | UBUNTU-CVE-2026-78030 |
| Ubuntu 14.04 | libdbi-perl | Fix pending | 1.630-1ubuntu0.1~esm9 (Ubuntu Pro) | UBUNTU-CVE-2026-78030 |
| Debian 14 | libdbi-perl | Fixed | 1.653-1 | DEBIAN-CVE-2026-78030 |
| Debian 13 | libdbi-perl | Fixed | 1.656-1~deb13u1 | DEBIAN-CVE-2026-78030 |
| Debian 12 | libdbi-perl | Fixed | 1.643-4+deb12u3 | DEBIAN-CVE-2026-78030 |
| Red Hat Enterprise Linux 10 | perl-DBI | Fixed Affected | 0:1.643-30.el10_3.3 | RHSA-2026:99209 |
| Red Hat Enterprise Linux 9 | perl-DBI | Fixed Affected | 0:1.643-12.el9_9.3 | RHSA-2026:99208 |
| Red Hat Enterprise Linux 8 | perl-DBI | Fixed Affected | 0:1.641-12.module+el8.10.0+25253+8e5064e3 | RHSA-2026:99162 |
| Red Hat Enterprise Linux 7 | perl-DBI | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | perl-DBI | Will not fix Out of support scope | ||
| AlmaLinux 10 | perl-DBI | Fixed | 1.643-30.el10_3.3 | ALSA-2026:99209 |
| AlmaLinux 9 | perl-DBI | Fixed | 1.643-12.el9_9.3 | ALSA-2026:99208 |
| AlmaLinux 8 | perl-DBI | Fixed | 1.641-5.el8_10 | ALSA-2026:99210 |
| Rocky Linux 10 | perl-DBI | Fixed | 0:1.643-30.el10_3.3 | RLSA-2026:99209 |
| Rocky Linux 9 | perl-DBI | Fixed | 0:1.643-12.el9_9.3 | RLSA-2026:99208 |
| Rocky Linux 8 | perl-DBI | Fixed | 0:1.641-12.module+el8.10.0+40428+45c449b5 | RLSA-2026:99210 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- DBI: affected: before 1.653; fixed in
1.653
Solution: Upgrade to DBI version 1.653 or later, or apply the upstream patch.
Vendor advisories:
- https://metacpan.org/release/HMBRAND/DBI-1.653/changes (release-notes)
- https://github.com/perl5-dbi/dbi/commit/315c6ce703b8b3cbe9188062d9ec80730293554a.patch (patch)
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-wqmw-wqwx-3fr7 (vendor-advisory)
References
- https://metacpan.org/release/HMBRAND/DBI-1.653/changes
- https://github.com/perl5-dbi/dbi/commit/315c6ce703b8b3cbe9188062d9ec80730293554a.patch
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-wqmw-wqwx-3fr7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.