DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in sql_type_cast_svpv
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 );
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-88815
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:24 UTC · Revision 1
Source evidence
DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in sql_type_cast_svpv
core-osv · Original sourcePublished 28 Sept 2026, 16:04 UTC
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 );
osv:CVE-2026-88815
Complete source record
{
"id": "363cae3c71fb79335b2c27af1450de7c36f8e53ed233bc886ca29d2bc407b3d8",
"url": "https://osv.dev/vulnerability/CVE-2026-88815",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DBI versions before 1.654 for Perl incorrectly treat numeric values as strings in sql_type_cast_svpv",
"summary": "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 );",
"evidence": "osv:CVE-2026-88815",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-88815",
"aliases": [
"CVE-2026-88815",
"GHSA-c8vq-w3wr-6979"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/perl5-dbi/dbi",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4e9aa3345770a3afd3cd37b305f15c97e3cd70bc"
},
{
"fixed": "e5ad87e5602da995d28b4d65df222368b58d6702"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.654"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "e5ad87e5602da995d28b4d65df222368b58d6702"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.653",
"1.652",
"1.651",
"1.650",
"1.649",
"1.648",
"1.647",
"1.646",
"1.645",
"1.644",
"1.643_02",
"1.643_01",
"1.643",
"1.642",
"1.641",
"1.640",
"1.639",
"1.638",
"1.637",
"1.636",
"1.635",
"1.634",
"1.633_92",
"1.633_91",
"1.633_90",
"1.633",
"1.632_90",
"1.632",
"1.631",
"1.630",
"1.628",
"1.627",
"1.626",
"1.625",
"1.624",
"1.622",
"1.619",
"1.618",
"1.615",
"1.614_90",
"1.613_93",
"1.613_92",
"1.613_91",
"1.613_90",
"1.613_71",
"1.613_70",
"1.611_94",
"1.611_93",
"1.611_92",
"1.611_91",
"1.611_90",
"1.607",
"1.602",
"DBI-1.58",
"DBI-1.57",
"DBI-1.51",
"DBI-1.47"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-88815.json"
}
}
],
"modified": "2026-10-28T02:30:21.617100808Z",
"provider": "osv",
"references": [
"https://cpan.org/modules",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/88xxx/CVE-2026-88815.json",
"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-c8vq-w3wr-6979",
"https://metacpan.org/release/HMBRAND/DBI-1.654/changes",
"https://nvd.nist.gov/vuln/detail/CVE-2026-88815",
"https://github.com/perl5-dbi/dbi/commit/e5ad87e5602da995d28b4d65df222368b58d6702.patch",
"https://github.com/perl5-dbi/dbi"
],
"provider_metadata": {
"cwe_ids": [
"CWE-843"
],
"cna_assigner": "CPANSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/88xxx/CVE-2026-88815.json"
}
},
"related_cves": [
{
"value": "CVE-2026-88815",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487730,
"published_at": "2026-09-28T16:04:22.057+00:00"
}