CVE-2026-14740 DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment

Critical 9.1 Published Updated

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.

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.

Is CVE-2026-14740 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free