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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-07-07T22:05:45.077Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- DBI: before 1.650
- perl dbi: before 1.650

## 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> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-14740](https://www.cve.org/CVERecord?id=CVE-2026-14740), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2026-14740](https://nvd.nist.gov/vuln/detail/CVE-2026-14740), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-14740 · Whole record: https://cve.day/CVE-2026-14740.json · Rebuilt by cve.day 2026-11-25T22:59:27.329Z
