REDHAT-BUG-2497915: Code Injection

Published Jul 7, 2026
·
Updated

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 DBIPROFILE 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.

Affected Software

1 affected component
Perl DBI Perl DBI<1.650

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade DBI (Perl DBI) to a version that resolves this vulnerability.

    Fixed in 1.650
  2. Configuration

    Do not set or populate the DBI handle’s Profile attribute using untrusted/caller-influenced input. Prevent untrusted data from reaching Profile via DBI_PROFILE environment variable, direct Profile attribute assignment, or DSN clauses like dbi:Driver(Profile=>...):... (including in network-exposed DBI::Gofer / DBI::ProxyServer per-request DSNs).

    DBI Profile attribute = do not set from caller-influenced/untrusted data
  3. Compensating control

    If using a network-exposed DBI::Gofer / DBI::ProxyServer, ensure the per-request DSN/driver-attribute that feeds the broker host’s Profile attribute cannot be influenced by untrusted clients (e.g., enforce strict allowlisting/validation of DSN/driver attributes at the network boundary so callers cannot supply arbitrary Profile content).

Event History

Jul 7, 2026
Data Sourced
via Red Hat·11:02 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203