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.
Published: 2026-07-07
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A buffer‑overread of one byte occurs in the DBI preparse routine when it removes an initial SQL comment. On memory‑hardened builds the fault triggers a crash, while on normal builds it leads to nondeterministic newline handling, potentially destabilising affected applications.

Affected Systems

All installations of the HMBRAND DBI module for Perl running a version earlier than 1.650 that use preparse with SQL statements starting with a comment line.

Risk and Exploitability

The CVSS score of 9.1 signifies a high‑severity flaw, yet the EPSS score of less than 1 % indicates a low probability of exploitation in the wild. The vulnerability does not appear in the CISA KEV catalog. The likely attack vector involves any Perl application that constructs or accepts SQL strings beginning with a comment and passes them to DBI; an attacker could trigger the fault by supplying such a string, resulting in a crash or unpredictable behavior but not direct code execution.

Generated by OpenCVE AI on July 28, 2026 at 09:24 UTC.

Remediation

Vendor Solution

Upgrade to DBI version 1.650 or later.


Vendor Workaround

Remove initial comments from SQL statements before passing them to DBI.


OpenCVE Recommended Actions

  • Upgrade to DBI version 1.650 or newer.
  • If an upgrade is not immediately possible, explicitly strip any initial SQL comments from query strings before passing them to DBI.
  • Review application code to avoid using DBI's preparse on SQL statements that begin with comments; ensure all statements are sanitized or restructured to eliminate leading comments.

Generated by OpenCVE AI on July 28, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}


Thu, 09 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 07 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Hmbrand
Hmbrand dbi
Vendors & Products Hmbrand
Hmbrand dbi

Tue, 07 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
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.
Title DBI versions before 1.650 for Perl read one byte out-of-bounds in preparse when deleting an initial SQL comment
Weaknesses CWE-125
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-08T13:59:33.009Z

Reserved: 2026-07-04T09:43:56.576Z

Link: CVE-2026-14740

cve-icon Vulnrichment

Updated: 2026-07-08T00:28:32.673Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-07T22:05:45Z

Links: CVE-2026-14740 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T12:15:03Z

Weaknesses