CVE-2026-14740DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-14740 | |
| Ubuntu 26.04 | libdbi-perl | Under investigation | UBUNTU-CVE-2026-14740 | |
| Ubuntu 25.10 | libdbi-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-14740 | |
| Ubuntu 24.04 | libdbi-perl | Under investigation | UBUNTU-CVE-2026-14740 | |
| Ubuntu 22.04 | libdbi-perl | Under investigation | UBUNTU-CVE-2026-14740 | |
| Ubuntu 20.04 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-14740 | |
| Ubuntu 18.04 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-14740 | |
| Ubuntu 16.04 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-14740 | |
| Ubuntu 14.04 | libdbi-perl | Fix pending | UBUNTU-CVE-2026-14740 | |
| Debian 14 | libdbi-perl | Fixed | 1.650-1 | DEBIAN-CVE-2026-14740 |
| Debian 13 | libdbi-perl | Fixed | 1.652-2~deb13u1 | DEBIAN-CVE-2026-14740 |
| Debian 12 | libdbi-perl | Fixed | 1.643-4+deb12u2 | DEBIAN-CVE-2026-14740 |
| Red Hat Enterprise Linux 10 | perl-DBI | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | perl-DBI | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | perl-DBI | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | perl-DBI | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | perl-DBI | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | perl-dbi | Fixed | 1.651-r0 | ALPINE-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.
- HMBRAND DBI: affected: before 1.650; fixed in
1.650
Solution: Upgrade to DBI version 1.650 or later.
Workaround: Remove initial comments from SQL statements before passing them to DBI.
Vendor advisories:
- https://github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01.patch (patch)
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-35f4-f8m9-w8xg (vendor-advisory)
- https://metacpan.org/release/HMBRAND/DBI-1.650/changes (release-notes)
References
- https://github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01.patch
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-35f4-f8m9-w8xg
- https://metacpan.org/release/HMBRAND/DBI-1.650/changes
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.