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

Summary

CVECVE-2026-88815
StatePUBLISHED
AssignerCPANSec
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-28 17:17:52 UTC
Updated2026-09-30 20:17:35 UTC
DescriptionDBI 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 );

Risk And Classification

Primary CVSS: v3.1 6.2 MEDIUM from ADP

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.002090000 probability, percentile 0.099730000 (date 2026-09-29)

Problem Types: CWE-843 | CWE-843 CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

ReferenceSourceLinkTags
metacpan.org/release/HMBRAND/DBI-1.654/changes 9b29abf9-4ab0-4765-b253-1875cd9b441e metacpan.org
github.com/perl5-dbi/dbi/commit/e5ad87e5602da995d28b4d65df222368b58d6702... 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com
github.com/perl5-dbi/dbi/security/advisories/GHSA-c8vq-w3wr-6979 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
www.openwall.com/lists/oss-security/2026/09/28/12 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Harsh Raj Singhania (en)

Additional Advisory Data

Solutions

CNA: Upgrade to DBI 1.654 or later.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report