9.8critical
DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DBI | before 1.648 | CVE List |
| perl dbi | before 1.648 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Las versiones de DBI anteriores a la 1.648 para Perl tienen un desbordamiento de montículo al preanalizar sentencias SQL con más de 9 enlazadores. El método “preparse” expande los caracteres de marcador de posición SQL a enlazadores numerados de la forma :pN, pero solo asigna tres caracteres por enlazador en el búfer. Los marcadores de posición 10-99 requieren cuatro caracteres, 100-999 requieren cinco caracteres, etcétera.
References
| https://metacpan.org/release/HMBRAND/DBI-1.648/changes | release-notes | |
| https://github.com/perl5-dbi/dbi/commit/af79036c07aa9a457971c0f4136e37c85dc20978.patch | patch | |
| http://www.openwall.com/lists/oss-security/2026/06/06/4 | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10879 changed 2026-06-08 | CVE Terms of Use |
| NVD | CVE-2026-10879 changed 2026-10-26 | Public domain |