{"id":"CVE-2026-14740","state":"PUBLISHED","title":"DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment","description":"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.","publishedAt":"2026-07-07T22:05:45.077Z","updatedAt":"2026-07-08T13:59:33.009Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["HMBRAND DBI"],"affected":[{"vendor":"HMBRAND","product":"DBI","packageName":"DBI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.650","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["DBI.xs"],"programRoutines":[{"name":"preparse"}],"repo":"https://github.com/perl5-dbi/dbi"}],"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","http://www.openwall.com/lists/oss-security/2026/07/07/17"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/14xxx/CVE-2026-14740.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-14740","state":"PUBLISHED","datePublished":"2026-07-07T22:05:45.077Z","dateUpdated":"2026-07-08T13:59:33.009Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-07-04T09:43:56.576Z"},"containers":{"cna":{"title":"DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"HMBRAND","product":"DBI","packageName":"DBI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.650","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["DBI.xs"],"programRoutines":[{"name":"preparse"}],"repo":"https://github.com/perl5-dbi/dbi"}],"references":[{"url":"https://github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c65caf1867781ab2bfe2fadcc01.patch","tags":["patch"]},{"url":"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-35f4-f8m9-w8xg","tags":["vendor-advisory"]},{"url":"https://metacpan.org/release/HMBRAND/DBI-1.650/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-07T22:05:45.077Z"},"solutions":[{"lang":"en","value":"Upgrade to DBI version 1.650 or later."}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Remove initial comments from SQL statements before passing them to DBI."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/07/17"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-08T00:28:32.673Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-08T13:58:06.622142Z","id":"CVE-2026-14740","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-08T13:59:33.009Z"}}]}}}