CVE-2026-78030: 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

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

DBD::DBM passes the dbmtype and dbmmldbm 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 dbmmldbm 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:fdir=/var/db;dbmtype=../../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 Software

2 affected components
Perl DBI<1.653
Perl DBD::DBM<1.653

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Perl DBI to a version that resolves this vulnerability.

    Fixed in 1.653
  2. Compensating control

    Avoid letting untrusted input control the DBI DBD::DBM connect attributes dbm_type or dbm_mldbm (e.g., do not build these attributes from a DSN fragment or other caller-supplied values).

Event History

Sep 19, 2026
CVE Published
via MITRE·10:45 AM
Data Sourced
via MITRE·10:45 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

What applications are realistically exposed to this issue?

Applications using DBD::DBM are exposed when an untrusted party can influence the dbm_type or dbm_mldbm connect attribute. This can occur when those values are accepted through a DSN fragment or a parameter that selects the storage backend.

2

What does an attacker need to exploit it?

The attacker needs control over either dbm_type or dbm_mldbm during connection setup and must be able to name a file that Perl can load. Exploitation causes Perl to run the selected file's file-scope code.

3

Do proxy or remote DBI deployments change the exposure?

Yes. DBD::Gofer forwards connect attributes to the server side, and DBI::ProxyServer only checks that a DSN begins with a driver prefix. Deployments using either should review whether remote users can supply or alter DSNs or connect attributes.

4

What can be done before upgrading?

Do not allow untrusted input to select dbm_type or dbm_mldbm. Construct DSNs and connect attributes from fixed, trusted values rather than passing through user-controlled DSN fragments or backend-selection parameters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203