CVE-2026-78030
Arbitrary module loading in DBI for Perl via unvalidated dbm_type and dbm_mldbm…
Critical 9.8 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 19, 2026
- Updated
- Sep 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-470
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
DBI versions before 1.653 allow loading and executing arbitrary modules through unvalidated dbm_type and dbm_mldbm attributes in DBD::DBM. An attacker who controls these attributes (for example, via a DSN fragment or connection parameter) can execute arbitrary code with the permissions of the Perl process.
Show the original NVD text
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
Patch available · fixed versions: 1.653
Update DBI to version 1.653 or later to properly validate dbm_type and dbm_mldbm attributes.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official advisories
- Security update for perl-DBI · SUSE · openSUSE-SU-2026:22454-1 · Nov 24, 2026 Critical
- Red Hat Security Advisory: perl-DBI security update · Red Hat · RHSA-2026:99208 · Nov 13, 2026 High
- Red Hat Security Advisory: perl-DBI security update · Red Hat · RHSA-2026:99209 · Nov 13, 2026 High
- Red Hat Security Advisory: perl-DBI:1.641 security update · Red Hat · RHSA-2026:99210 · Nov 13, 2026 High
- Security update for perl-DBI · SUSE · SUSE-SU-2026:4612-1 · Oct 9, 2026 Critical
- Security update for perl-DBI · SUSE · SUSE-SU-2026:4386-1 · Sep 29, 2026 Critical
Also: Red Hat (+3), SUSE (+5)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.