CVE Vulnerabilities

CVE-2026-88815

Access of Resource Using Incompatible Type ('Type Confusion')

Published: Sep 28, 2026 | Modified: Sep 30, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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

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

This is reachable in Perl using the sql_type_cast function:

my $num = 42; DBI::sql_type_cast( $num, DBI::SQL_NUMERIC, 0 );

Weakness

The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Enterprise Linux 10RedHatperl-DBI-0:1.643-26.el10_2.7*
Red Hat Enterprise Linux 10RedHatperl-DBI-0:1.643-30.el10_3.3*
Red Hat Enterprise Linux 8RedHatperl-DBI:1.641-8100020261005175434.69ef70f8*
Red Hat Enterprise Linux 8RedHatperl-DBI-0:1.641-4.el8_10*
Red Hat Enterprise Linux 9RedHatperl-DBI-0:1.643-9.el9_8.7*
Red Hat Enterprise Linux 9RedHatperl-DBI-0:1.643-12.el9_9.3*

Extended Description

When the product accesses the resource using an incompatible type, this could trigger logical errors because the resource does not have expected properties. In languages without memory safety, such as C and C++, type confusion can lead to out-of-bounds memory access. While this weakness is frequently associated with unions when parsing data with many different embedded object types in C, it can be present in any application that can interpret the same variable or memory location in multiple ways. This weakness is not unique to C and C++. For example, errors in PHP applications can be triggered by providing array parameters when scalars are expected, or vice versa. Languages such as Perl, which perform automatic conversion of a variable of one type when it is accessed as if it were another type, can also contain these issues.

References