PT-2026-102714 · Azure Linux · Perl-Dbi
Published
2026-09-19
·
Updated
2026-09-19
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Perl-Dbi