Heap Overflow in Perl DBI Preparser Fixed by Placeholder Limit
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 7, 2026

A heap overflow vulnerability tracked as CVE-2026-14739 was disclosed in DBI for Perl versions before 1.650. The flaw occurs during SQL statement preparsing when an attacker supplies an extreme number of placeholders, leading to an out-of-bounds write classified as CWE-787. The issue stems from an incomplete fix for CVE-2026-10879, which still failed to allocate enough memory when handling roughly 1.2 million placeholders.
The maintainers addressed the bug in DBI 1.650 by enforcing a hard limit of 99,999 placeholders, preventing the oversized input condition that triggered the heap overflow. Organizations using Perl applications that rely on DBI should identify deployments running versions earlier than 1.650 and prioritize upgrades to remove exposure to malformed SQL statements that could crash processes or potentially enable further exploitation.
Why it matters
Impact assessment
DBI for Perl deployments running versions earlier than 1.650 are exposed to a heap overflow in SQL statement preparsing. The primary affected population is organizations with Perl applications that accept attacker-influenced SQL construction paths through DBI, especially internally developed apps, legacy middleware, and automation platforms.
The immediate impact is process instability or crashes from malformed SQL statements, with potential for more serious memory-corruption outcomes depending on application context and exploitability. The exposure appears broad across installed vulnerable versions rather than limited to a single sector, but the story does not provide confirmed in-the-wild exploitation.
Supporting details
- Affected product: DBI for Perl
- Affected versions: all versions before 1.650
- Fixed version: 1.650
- Vulnerability type: heap overflow / out-of-bounds write
- Trigger condition: extreme number of SQL placeholders during preparsing
- Likely business effects:
- Application crashes and service disruption
- Potential denial of service in Perl-backed services
- Possible downstream security impact from memory corruption
- Scope of exposure: potentially widespread in environments still running legacy DBI versions
- Known exploitation status: no exploitation in the wild reported in the provided references


