CVE-2026-14740 DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment
An out-of-bounds read in the Perl DBI library can cause a crash or nondeterministic behavior when processing SQL comments.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-14740?
CVE-2026-14740 is a critical memory corruption vulnerability in HMBRAND DBI, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment.
The preparse method normalises SQL and removes comments. When the SQL starts with a comment line, the deletion of that line during normalisation led to an out-of-bounds read by one byte. The result is a fault on memory-hardened builds and nondeterministic newline retention on normal builds.
Weakness: CWE-125
Which versions are affected by CVE-2026-14740?
It affects 1 product.
Products include Perl Dbi.
How do I fix CVE-2026-14740?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-14740 being exploited?
There is no known exploitation of CVE-2026-14740 in the wild and no public exploit code.
Other vulnerabilities in HMBRAND DBI
- CVE-2026-14739 Memory corruption in DBI
- CVE-2026-10879 DBI versions before 1.648 for Perl have a heap overflow when preparsing SQL statements with more than 9 binders
- CVE-2026-14380 DBI versions before 1.650 for Perl are vulnerable to code injection via caller-influenced Profile
- CVE-2026-9698 DBI versions before 1.648 for Perl saved errors in a limited-sized buffer
- CVE-2014-10402 Path traversal in n/a
Sources
Also known as ALPINE-CVE-2026-14740, AZL-92208, BELL-CVE-2026-14740, DEBIAN-CVE-2026-14740, ECHO-9964-7bb7-f289, GHSA-35f4-f8m9-w8xg and 1 more.