CVE-2026-14380 Details
Description
DBI versions before 1.650 for Perl are vulnerable to code injection via caller-influenced Profile. When a string is assigned to a DBI handle's Profile attribute, DBI splits it into path, package and arguments, and interpolates the package part in a string eval with no validation of the package name. Any caller-influenced value that reaches the Profile attribute is therefore arbitrary Perl code execution, including calls to run system commands. The Profile attribute can be set from three different sources that can carry untrusted data: the DBI_PROFILE environment variable, a direct attribute assignment, and a DSN driver-attribute clause dbi:Driver(Profile=>SPEC):db. An attacker controlling any of those inputs runs arbitrary Perl in the host process. The strongest remote position is a network-exposed DBI::Gofer / DBI::ProxyServer whose per-request DSN reaches the Profile attribute, letting a client execute code on the broker host.
A code injection vulnerability has been identified in the DBI module for Perl, affecting versions prior to 1.650. The issue arises when a string is assigned to a DBI handle's Profile attribute. DBI improperly splits the string into path, package, and arguments, and then interpolates the package part into a string eval without validating the package name. This flaw allows any caller-influenced value that reaches the Profile attribute to execute arbitrary Perl code, including system commands, in the host process. The vulnerability can be exploited through the DBI_PROFILE environment variable, direct attribute assignments, or via a DSN driver-attribute clause that includes untrusted data. The most significant risk occurs with a network-exposed DBI::Gofer / DBI::ProxyServer, where an attacker can execute code on the broker host by manipulating the DSN profile attribute.
Users should upgrade to DBI version 1.650, which patches the vulnerability by validating the package name before evaluation and replacing the string eval with a safer module loading approach.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/perl5-dbi/dbi/commit/b73d5d9901767fc1d16b6661ef08fbed4532e259.patch | CPANSec | Patch |
| https://github.com/perl5-dbi/dbi/security/advisories/GHSA-ch8w-hxc2-v557 | CPANSec | Vendor Advisory |
| https://metacpan.org/release/HMBRAND/DBI-1.650/changes | CPANSec | Release Notes |
| http://www.openwall.com/lists/oss-security/2026/07/07/16 | CVE | Mailing ListPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-470 | Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') | CPANSec |
| CWE-95 | Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| perl dbi | < 1.650 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Aug 31, 2026 | CVE Modified | CVE |
| Aug 31, 2026 | CVE Modified | CPANSec |
| Jul 10, 2026 | Initial Analysis | [email protected] |
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | CVE Modified | CVE |
| Jul 7, 2026 | New CVE Received | CPANSec |