REDHAT-BUG-2542559: High severity Perl DBI vulnerability

Published Sep 28, 2026
·
Updated

DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in sqltypecastsvpv.

When casting to SQLNUMERIC, sqltypecastsvpv passes the string pointer and length of the SV to groknumber without stringifying it first. An integer (IV) or floating-point (NV) value has no valid string pointer, so groknumber reads from an invalid address, triggering a segmentation fault.

This is reachable in Perl using the sqltypecast function:

my $num = 42; DBI::sqltypecast( $num, DBI::SQLNUMERIC, 0 );

Affected Software

1 affected component
Perl DBI<1.654

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Perl DBI to a version that resolves this vulnerability.

    Fixed in 1.654

Event History

Sep 28, 2026
Data Sourced
via Red Hat·04:31 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input is required to trigger the crash?

The vulnerable path is reached when Perl code calls DBI::sql_type_cast with SQL_NUMERIC and supplies an integer (IV) or floating-point (NV) value. For example, casting a numeric value such as 42 can cause a segmentation fault because the value is not stringified before grok_number reads it.

2

What is the practical impact of successful exploitation?

The described impact is a segmentation fault in the Perl process using DBI, resulting in a denial of service for that process.

3

Which DBI versions are affected?

Perl DBI versions before 1.654 are affected.

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