CVE-2026-14740 Details
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.
A vulnerability exists in DBI versions prior to 1.650 for Perl, where the preparse method improperly handles SQL comments, leading to a one-byte out-of-bounds read. This issue arises when an SQL statement begins with a comment line, as the normalization process removes the comment but fails to correctly manage the associated memory, creating a potential heap-buffer-overflow read in memory-hardened builds. On standard builds, this anomaly may cause unpredictable newline retention.
Users can upgrade to DBI version 1.650 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01.patch | CPANSec | Patch |
| https://github.com/perl5-dbi/dbi/security/advisories/GHSA-35f4-f8m9-w8xg | CPANSec | Vendor Advisory |
| https://metacpan.org/release/HMBRAND/DBI-1.650/changes | CPANSec | Release Notes |
| http://www.openwall.com/lists/oss-security/2026/07/07/17 | CVE | Mailing ListPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| perl dbi | < 1.650 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 10, 2026 | Initial Analysis | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | CVE Modified | CVE |
| Jul 7, 2026 | New CVE Received | CPANSec |