HMBRAND DBI
DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CISA ADP · CWE-125
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
HMBRAND DBI
- < 1.650
Fixed in 1.650
Mitigation
Upgrade to DBI version 1.650 or later.
Workaround
Remove initial comments from SQL statements before passing them to DBI.
References
- Patch github.com/perl5-dbi/dbi/commit/fc16f9e8b3dd5c…
- Vendor advisory github.com/perl5-dbi/dbi/security/advisories/G…
- Release notes metacpan.org/release/HMBRAND/DBI-1.650/changes
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.