p PatchFirst

CVE-2026-78030

CVE-2026-78030 · DBI versions before 1.653 for Perl load arbitrary modules via unvalidated dbm_type and dbm_mldbm attributes in DBD::DBM

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.8 · Critical · EPSS 0.4% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • libdbi-perl Debian:12

    Versions
    • 1.643-4
    • 1.643-4+deb12u1
    • 1.643-4+deb12u2
    Affected ranges
    • ECOSYSTEM: < 1.643-4+deb12u3

    Update to 1.643-4+deb12u3

  • libdbi-perl Debian:13

    Versions
    • 1.647-1
    • 1.647-1+deb13u1
    • 1.648-1
    • 1.649-1
    • 1.650-1
    • 1.651-1
    • 1.652-1
    • 1.652-2
    • 1.652-2~deb13u1
    • 1.653-1
    • 1.654-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libdbi-perl Debian:14

    Versions
    • 1.647-1
    • 1.648-1
    • 1.649-1
    • 1.650-1
    • 1.651-1
    • 1.652-1
    • 1.652-2
    • 1.652-2~deb13u1
    Affected ranges
    • ECOSYSTEM: < 1.653-1

    Update to 1.653-1

  • libdbi-perl Ubuntu:Pro:14.04:LTS

    Versions
    • 1.627-1
    • 1.628-1
    • 1.630-1
    • 1.630-1ubuntu0.1~esm1
    • 1.630-1ubuntu0.1~esm4
    • 1.630-1ubuntu0.1~esm5
    • 1.630-1ubuntu0.1~esm6
    • 1.630-1ubuntu0.1~esm8
    Affected ranges
    • ECOSYSTEM: < 1.630-1ubuntu0.1~esm9

    Update to 1.630-1ubuntu0.1~esm9

  • libdbi-perl Ubuntu:Pro:16.04:LTS

    Versions
    • 1.633-1
    • 1.634-1
    • 1.634-1build1
    • 1.634-1ubuntu0.1
    • 1.634-1ubuntu0.2
    • 1.634-1ubuntu0.2+esm1
    • 1.634-1ubuntu0.2+esm2
    • 1.634-1ubuntu0.2+esm4
    Affected ranges
    • ECOSYSTEM: < 1.634-1ubuntu0.2+esm5

    Update to 1.634-1ubuntu0.2+esm5

  • libdbi-perl Ubuntu:Pro:18.04:LTS

    Versions
    • 1.637-1
    • 1.639-1
    • 1.640-1
    • 1.640-1ubuntu0.1
    • 1.640-1ubuntu0.2
    • 1.640-1ubuntu0.3
    • 1.640-1ubuntu0.3+esm1
    • 1.640-1ubuntu0.3+esm3
    Affected ranges
    • ECOSYSTEM: < 1.640-1ubuntu0.3+esm4

    Update to 1.640-1ubuntu0.3+esm4

  • libdbi-perl Ubuntu:Pro:20.04:LTS

    Versions
    • 1.642-1
    • 1.642-1build1
    • 1.643-1
    • 1.643-1ubuntu0.1
    • 1.643-1ubuntu0.1+esm1
    • 1.643-1ubuntu0.1+esm3
    Affected ranges
    • ECOSYSTEM: < 1.643-1ubuntu0.1+esm4

    Update to 1.643-1ubuntu0.1+esm4

  • libdbi-perl Ubuntu:22.04:LTS

    Versions
    • 1.643-3build2
    • 1.643-3build3
    • 1.643-3ubuntu0.1
    • 1.643-3ubuntu0.3
    Affected ranges
    • ECOSYSTEM: < 1.643-3ubuntu0.4

    Update to 1.643-3ubuntu0.4

  • libdbi-perl Ubuntu:24.04:LTS

    Versions
    • 1.643-4
    • 1.643-4build1
    • 1.643-4build2
    • 1.643-4build3
    • 1.643-4ubuntu0.1
    • 1.643-4ubuntu0.3
    Affected ranges
    • ECOSYSTEM: < 1.643-4ubuntu0.4

    Update to 1.643-4ubuntu0.4

  • libdbi-perl Ubuntu:26.10

    Versions
    • 1.647-1build1
    • 1.648-1
    • 1.651-1
    • 1.652-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libdbi-perl Ubuntu:26.04:LTS

    Versions
    • 1.647-1
    • 1.647-1build1
    • 1.647-1ubuntu0.26.04.1
    • 1.647-1ubuntu0.26.04.3
    Affected ranges
    • ECOSYSTEM: < 1.647-1ubuntu0.26.04.4

    Update to 1.647-1ubuntu0.26.04.4

Original sources

Check your server →