{"id":"CVE-2026-14740","summary":"DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment","details":"DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment.\n\nThe 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.","aliases":["GHSA-35f4-f8m9-w8xg"],"modified":"2026-07-17T18:29:33.573228676Z","published":"2026-07-07T22:05:45.077Z","related":["SUSE-SU-2026:22592-1","SUSE-SU-2026:22623-1","openSUSE-SU-2026:11234-1","openSUSE-SU-2026:21293-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14740.json","cna_assigner":"CPANSec","cwe_ids":["CWE-125"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/07/07/17"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14740.json"},{"type":"ADVISORY","url":"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-35f4-f8m9-w8xg"},{"type":"ADVISORY","url":"https://metacpan.org/release/HMBRAND/DBI-1.650/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14740"},{"type":"FIX","url":"https://github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01.patch"},{"type":"PACKAGE","url":"https://github.com/perl5-dbi/dbi"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl5-dbi/dbi","events":[{"introduced":"0"},{"fixed":"e471b1e8667b8b1de404db07e0c9331df06eb621"},{"fixed":"fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:perl:dbi:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.650"}]}}],"versions":["1.649","1.648","1.647","1.646","1.645","1.644","1.643_02","1.643_01","1.643","1.642","1.641","1.640","1.639","1.638","1.637","1.636","1.635","1.634","1.633_92","1.633_91","1.633_90","1.633","1.632_90","1.632","1.631","1.630","1.628","1.627","1.626","1.625","1.624","1.622","1.619","1.618","1.615","1.614_90","1.613_93","1.613_92","1.613_91","1.613_90","1.613_71","1.613_70","1.611_94","1.611_93","1.611_92","1.611_91","1.611_90","1.607","1.602","DBI-1.58","DBI-1.57","DBI-1.51","DBI-1.47"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-14740.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}