Vulnerability · Published Jul 7, 2026 · Assigned by CPANSec
CVE-2026-14740DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment
Critical 9.1
In plain English
A critical-severity out-of-bounds read in DBI from HMBRAND. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | perl-dbi | 1.651-r0 | ALPINE-CVE-2026-14740 |
| Debian:12 | libdbi-perl | 1.643-4+deb12u2 | DEBIAN-CVE-2026-14740 |
| Debian:13 | libdbi-perl | 1.652-2~deb13u1 | DEBIAN-CVE-2026-14740 |
| Debian:14 | libdbi-perl | 1.650-1 | DEBIAN-CVE-2026-14740 |
| Ubuntu:22.04:LTS | libdbi-perl | no fix listed | UBUNTU-CVE-2026-14740 |
| Ubuntu:24.04:LTS | libdbi-perl | no fix listed | UBUNTU-CVE-2026-14740 |
| Ubuntu:25.10 | libdbi-perl | no fix listed | UBUNTU-CVE-2026-14740 |
| Ubuntu:26.04:LTS | libdbi-perl | no fix listed | UBUNTU-CVE-2026-14740 |
| Ubuntu:26.10 | libdbi-perl | no fix listed | UBUNTU-CVE-2026-14740 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- 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
- http://www.openwall.com/lists/oss-security/2026/07/07/17