DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
Summary
| CVE | CVE-2026-10879 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-05 15:16:46 UTC |
| Updated | 2026-06-05 15:56:37 UTC |
| Description | DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders. The preparse method expands SQL placeholder characters to numbered binders of the form :pN, but only allocates three characters per binder in the buffer. Placeholders 10-99 require four characters, 100-999 require five characters, et cetera. |
Risk And Classification
Problem Types: CWE-787 | CWE-787 CWE-787 (Out-of-bounds Write)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| metacpan.org/release/HMBRAND/DBI-1.648/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/perl5-dbi/dbi/commit/af79036c07aa9a457971c0f4136e37c85dc20978... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-04-25T00:00:00.000Z | Issue reported to CPANSec. |
| CNA | 2026-05-28T00:00:00.000Z | Commit fixed the issue in DBI. |
| CNA | 2026-06-04T00:00:00.000Z | DBI 1.648 released. |
Solutions
CNA: Upgrade to DBI 1.648 or later.
There are currently no legacy QID mappings associated with this CVE.