Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerability

Perl DBI 1.648 Fixes SQL Preparse Heap Overflow and Separate Stack Overflow

Vulnerability Disclosure · 3 sources · Updated 30d ago · First seen Apr 25, 2026

Perl DBI 1.648 Fixes SQL Preparse Heap Overflow and Separate Stack Overflow

Perl DBI 1.648 fixes CVE-2026-10879, a heap buffer overflow affecting earlier versions when preparsing SQL statements containing more than nine binders. The preparse method allocates only three characters per numbered binder, leaving insufficient space for multi-digit binder numbers and causing an out-of-bounds write. The vulnerability was reported to CPANSec on April 25, 2026, fixed in a May 28 commit, and addressed in the June 4 release.

The same release fixes a possible stack overflow tracked as CVE-2026-9698 and prevents table source locations outside explicitly specified folders. The changelog does not specify the stack overflow’s affected-version range or attack prerequisites, and the supplied advisories do not establish active exploitation or provide severity scores. Organizations using Perl DBI should inventory deployed versions and upgrade to 1.648 or later, including application dependencies that may retain older copies.

Why it matters

Perl applications using DBI versions before 1.648 are exposed to a heap buffer overflow when the SQL preparse method processes more than nine binders; DBI 1.648 also fixes a separate possible stack overflow. Memory corruption threatens application availability, but the supplied references do not establish code execution, data compromise, or active exploitation.

  • Affected population: Organizations running Perl database applications, including services, batch jobs, and applications with bundled or independently installed DBI dependencies.
  • Exposure scope: Cross-industry dependency exposure, with practical exploitability dependent on whether an application reaches the vulnerable preparse path and whether an attacker can influence the SQL statement structure.
  • Business risk: Application crashes could interrupt database-backed services and processing workflows. The references do not quantify deployment prevalence or identify affected organizations.
  • Uncertainty: Attack prerequisites and the affected-version range for the separate stack overflow, CVE-2026-9698, are not specified.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

19 events · Apr 25, 2026
  1. Reported Apr 25, 20267mo ago

    CPAN Security Group publishes CVE-2026-10879 advisory

    Robert Rothenberg published the advisory to the cve-announce and oss-security mailing lists, describing the SQL preparse out-of-bounds write as CWE-787. The advisory recommended upgrading to DBI 1.648 or later.

    oss-security - CVE-2026-10879: DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
  2. Reported Apr 25, 20267mo ago

    DBI commit fixes the SQL preparse heap overflow

    Commit af79036c07aa9a457971c0f4136e37c85dc20978 fixed CVE-2026-10879 in the perl5-dbi/dbi repository. The vulnerable implementation allocated insufficient space for numbered binders containing multiple digits.

    oss-security - CVE-2026-10879: DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
  3. Apr 25, 20267mo ago

    SQL preparse heap overflow reported to CPANSec

    The vulnerability subsequently identified as CVE-2026-10879 was reported to CPANSec. It affects DBI versions before 1.648 when SQL preparsing processes more than nine binders.

    oss-security - CVE-2026-10879: DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
  4. Reported Oct 23, 199531y ago

    DBI 1.648 released with stack and heap overflow fixes

    DBI 1.648 fixed a possible stack overflow tracked as CVE-2026-9698 and the SQL preparse heap buffer overflow tracked as CVE-2026-10879. The release also prohibited table source locations outside explicitly specified folders and corrected sprintf usage for trace_msg.

    ChangeLog - metacpan.org
  5. Reported Oct 23, 199531y ago

    DBI 1.644 lists fixes for CVE-2014-10401 and CVE-2014-10402

    The DBI 1.644 changelog listed fixes for CVE-2014-10401 and CVE-2014-10402, crediting Jens Rehsack and H. Merijn Brand.

    ChangeLog - metacpan.org
  6. Reported Oct 23, 199531y ago

    DBI 1.643 fixes XS memory corruption and a class-name buffer overflow

    DBI 1.643 fixed memory corruption when the Perl stack was reallocated in XS functions, a buffer overflow from an overlong DBD class name, and a potential NULL profile dereference. It also deprecated older API functions affected by overflow or Unicode issues.

    ChangeLog - metacpan.org
  7. Reported Oct 23, 199531y ago

    DBI 1.637 fixes an externally controlled format-string vulnerability

    DBI 1.637 fixed a CWE-134 format-string issue through which a database error containing a percent character could trigger a crash.

    ChangeLog - metacpan.org
  8. Reported Oct 23, 199531y ago

    DBI 1.632 fixes memory corruption and file-access restrictions

    DBI 1.632 fixed memory corruption when many arguments were passed to methods and prevented DBD::File drivers from opening files outside folders specified through f_dir. It also added security notices warning about Storable use in DBD::Proxy and DBI::ProxyServer.

    ChangeLog - metacpan.org
  9. Reported Oct 23, 199531y ago

    DBI 1.628 fixes callback-related stack corruption

    DBI 1.628 fixed stack corruption involving callbacks, tracked under RT tickets 85562 and 84974.

    ChangeLog - metacpan.org
  10. Reported Oct 23, 199531y ago

    DBI 1.625 fixes a heap-use-after-free during global destruction

    DBI 1.625 fixed a heap-use-after-free during global destruction, tracked under RT ticket 75614.

    ChangeLog - metacpan.org
  11. Reported Oct 23, 199531y ago

    DBI 1.619 stops the connected method from exposing passwords in traces

    DBI 1.619 fixed the connected method so that it no longer exposed passwords in trace files.

    ChangeLog - metacpan.org
  12. Reported Oct 23, 199531y ago

    DBI 1.602 fixes a potential callback-related core dump

    DBI 1.602 fixed a potential core dump when the stack was reallocated during a callback from XS code into Perl.

    ChangeLog - metacpan.org
  13. Reported Oct 23, 199531y ago

    DBI 1.55 fixes potential corruption in compiled-driver query methods

    DBI 1.55 fixed potential corruption in selectall_arrayref and selectrow_arrayref for compiled drivers. Users were instructed to rebuild compiled drivers after installation.

    ChangeLog - metacpan.org
  14. Reported Oct 23, 199531y ago

    DBI 1.47 disables default ProxyServer PID-file creation

    DBI 1.47 changed DBI::ProxyServer to stop creating PID files by default, referencing Ubuntu Security Notice USN-70-1 and CAN-2005-0077.

    ChangeLog - metacpan.org
  15. Reported Oct 23, 199531y ago

    DBI 1.33 fixes taint handling in fetchrow_hashref

    DBI 1.33 fixed a taint-handling bug in fetchrow_hashref.

    ChangeLog - metacpan.org
  16. Reported Oct 23, 199531y ago

    DBI 1.16 fixes ProxyServer client SQL restrictions

    DBI 1.16 corrected client SQL restrictions in ProxyServer.pm.

    ChangeLog - metacpan.org
  17. Reported Oct 23, 199531y ago

    DBI 1.15 removes potentially destructive Makefile behavior

    DBI 1.15 removed an obscure possibility of an rm -rf / operation from Makefile.PL.

    ChangeLog - metacpan.org
  18. Reported Oct 23, 199531y ago

    DBI 1.14 fixes error-handling crashes and masks traced passwords

    DBI 1.14 fixed RaiseError and PrintError handling that could cause a core dump when error strings contained percent characters. It also masked password parameters in trace output.

    ChangeLog - metacpan.org
  19. Reported Oct 23, 199531y ago

    DBI 1.13 fixes ProxyServer authentication and cipher handling

    DBI 1.13 fixed a bug involving user, key, and cipher handling in ProxyServer.

    ChangeLog - metacpan.org
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.