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.
Published: 2026-07-07
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DBI versions released before 1.650 for Perl contain a code injection flaw. When a caller supplies a string to the DBI handle’s Profile attribute, the library splits the string, extracts a package name, and evaluates that name with no validation. This allows an attacker to inject arbitrary Perl code that can invoke system commands. The consequence is full compromise of the host process, exposing confidentiality, integrity, and availability of the affected system.

Affected Systems

The vulnerability affects the HMBRAND DBI library in all releases prior to 1.650. It can be triggered from any source that populates the DBI Profile attribute, including the environment variable DBI_PROFILE, direct attribute assignments in code, or the DSN driver-attribute clause dbi:Driver(Profile=>SPEC):db. Systems that use DBI without restricting these inputs are at risk.

Risk and Exploitability

Remote code execution is the highest tier of impact. The CVSS score of 8.8 indicates high severity; the EPSS score of < 1% indicates a low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. A network‑exposed DBI::Gofer or DBI::ProxyServer is the strongest remote surface, where a client can craft a per‑request DSN that reaches the Profile attribute and run code on the broker host. Even though EPSS is low, the direct eval path means that if an attacker can influence any Profile input, exploitation remains straightforward.

Generated by OpenCVE AI on July 28, 2026 at 09:24 UTC.

Remediation

Vendor Solution

Upgrade to DBI version 1.650 or later.


OpenCVE Recommended Actions

  • Upgrade the DBI library to version 1.650 or later.
  • Restrict or sanitize input to the Profile attribute; for example, validate the package name or encode the string before evaluation.
  • Remove or unset the DBI_PROFILE environment variable in untrusted execution contexts.
  • If using DBI::Gofer or DBI::ProxyServer, limit network exposure or enforce authentication to prevent remote injection of DSN data.

Generated by OpenCVE AI on July 28, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 16 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

threat_severity

Important


Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 07 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Hmbrand
Hmbrand dbi
Vendors & Products Hmbrand
Hmbrand dbi

Tue, 07 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
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.
Title DBI versions before 1.650 for Perl are vulnerable to code injection via caller-influenced Profile
Weaknesses CWE-95
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-09T14:41:58.100Z

Reserved: 2026-07-01T21:17:54.504Z

Link: CVE-2026-14380

cve-icon Vulnrichment

Updated: 2026-07-08T00:28:31.619Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-07T22:04:49Z

Links: CVE-2026-14380 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T09:30:19Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')