# CVE-2026-78030: DBI versions before 1.653 for Perl load arbitrary modules via unvalidated dbm\_type and dbm\_mldbm attributes in DBD::DBM

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-470
- **Published:** 2026-09-19T10:45:10.164Z
- **Modified:** 2026-09-22T19:07:00.983Z

## Who should check

- Anyone running DBI \< 1.653

## Description

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.

## Affected and fixed versions

- DBI: \< 1.653 (cvelist)

## Mitigation

- Upgrade DBI to 1.653 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-78030. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-78030.md
Affected: DBI < 1.653
Fixed in: DBI 1.653

Steps:
1. Search this machine and project for DBI: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-78030 being exploited?

There is no confirmed exploitation: CVE-2026-78030 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-78030?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-78030?

DBI \< 1.653.

### Is there a fix for CVE-2026-78030?

Yes. Fixed in DBI 1.653. Upgrade DBI to 1.653 or later.

### How do I check if I'm affected by CVE-2026-78030?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/perl5-dbi/dbi/security/advisories/GHSA-wqmw-wqwx-3fr7>
- patch: <https://github.com/perl5-dbi/dbi/commit/315c6ce703b8b3cbe9188062d9ec80730293554a.patch>
- other: <https://metacpan.org/release/HMBRAND/DBI-1.653/changes>
- other: <http://www.openwall.com/lists/oss-security/2026/09/19/4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-78030>

HTML: <https://flawdb.com/CVE-2026-78030> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-78030>
