CVEfocus › CVE database › CVE-2026-14740

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

CVSS 9.1 CriticalEPSS 0.4% (higher than 33% of CVEs)Published 2026-07-07Updated 2026-07-08Assigner: CPANSec

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.

CWE-125

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
8Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libdbi-perlFix pendingUBUNTU-CVE-2026-14740
Ubuntu 26.04libdbi-perlUnder investigationUBUNTU-CVE-2026-14740
Ubuntu 25.10libdbi-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-14740
Ubuntu 24.04libdbi-perlUnder investigationUBUNTU-CVE-2026-14740
Ubuntu 22.04libdbi-perlUnder investigationUBUNTU-CVE-2026-14740
Ubuntu 20.04libdbi-perlFix pendingUBUNTU-CVE-2026-14740
Ubuntu 18.04libdbi-perlFix pendingUBUNTU-CVE-2026-14740
Ubuntu 16.04libdbi-perlFix pendingUBUNTU-CVE-2026-14740
Ubuntu 14.04libdbi-perlFix pendingUBUNTU-CVE-2026-14740
Debian 14libdbi-perlFixed1.650-1DEBIAN-CVE-2026-14740
Debian 13libdbi-perlFixed1.652-2~deb13u1DEBIAN-CVE-2026-14740
Debian 12libdbi-perlFixed1.643-4+deb12u2DEBIAN-CVE-2026-14740
Red Hat Enterprise Linux 10perl-DBIFix pending
Fix deferred
Red Hat Enterprise Linux 9perl-DBIFix pending
Fix deferred
Red Hat Enterprise Linux 8perl-DBIFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-DBIWill not fix
Out of support scope
Red Hat Enterprise Linux 6perl-DBIWill not fix
Out of support scope
Alpine Linux 3.24perl-dbiFixed1.651-r0ALPINE-CVE-2026-14740

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to DBI version 1.650 or later.

Workaround: Remove initial comments from SQL statements before passing them to DBI.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.