CVE-2026-10879

DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders

Published Jun 5, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw manifests during the preparsing of SQL statements when the DBI module expands placeholder characters into numbered binders. The module allocates only three characters per binder, which is insufficient for binders numbered 10 and higher. The resulting buffer overrun allows an attacker to overwrite non‑allocated heap space, potentially corrupting control data and enabling arbitrary code execution or denial of service.

Affected Systems

All installations of Perl DBI older than version 1.648 are vulnerable. The issue affects every instance where the preparse method processes an SQL statement that includes more than nine binders. No additional vendor-specific variants are listed beyond the base DBI package.

Risk and Exploitability

The flaw is a classic buffer overflow (CWE‑787). Exploitation requires that an attacker can supply a statement with more than nine binders to the preparse routine, which is likely possible in applications that accept user input. The EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog, so there is no public evidence of exploitation yet. The CVSS score of 9.8 indicates a high severity, and the heap overwrite suggests potential impact is high, warranting prompt remediation.

Remediation

Vendor Solution

Upgrade to DBI 1.648 or later.


OpenCVE Recommended Actions

  • Upgrade the DBI module to version 1.648 or later
  • Refactor application code so that any prepared statement contains nine or fewer binders
  • Audit existing preparse calls to ensure no statement passes more than nine binders to the DBI engine

Generated by OpenCVE AI on June 8, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4649-1 libdbi-perl security update
Debian DSA Debian DSA DSA-6338-1 libdbi-perl security update
Ubuntu USN Ubuntu USN USN-8466-1 Perl DBI module vulnerabilities
History
Type Values Removed Values Added
First Time appeared Perl
Perl dbi
CPEs cpe:2.3:a:perl:dbi:*:*:*:*:*:*:*:*
Vendors & Products Perl
Perl dbi
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hmbrand
Hmbrand dbi
Vendors & Products Hmbrand
Hmbrand dbi
Type Values Removed Values Added
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.
Title DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
Weaknesses CWE-787
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Jun 8, 2026, 4:55 PM
Reserved
Jun 4, 2026, 4:34 PM
Status
Analyzed
Published
Jun 5, 2026, 3:16 PM
Modified
Oct 26, 2026, 11:10 AM