DbiApplication · Perl

CVE-2026-14740

CRITICAL · 9.1 CVSS v3.1 Published 2026-07-07
Fix available
A fix is available. Upgrade to 1.650 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click Patch available 7 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

In the news

Third-party coverage
Trending covered by 1 outlet this week · latest 1mo ago

Surfaced from public web coverage — external links open in a new tab.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The DBI Perl module's preparse function, which normalizes SQL by removing comments, reads one byte out-of-bounds when deleting an initial SQL comment line. This causes faults on memory-hardened builds and nondeterministic newline retention on normal builds.

MitigationUpgrade DBI to version 1.650 or later to resolve the out-of-bounds read in the preparse function.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
DbiApplication
Affected:< 1.650

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check if DBI module is installed
    Run `perldoc DBI` or try `perl -MDBI -e 'print DBI->VERSION'` to see if the module loads
    Affected if DBI module is not installed or cannot be loaded
  2. Identify installed DBI version
    Run `perl -MDBI -e 'print DBI->VERSION'` or check the DBI version via CPAN/dpkg/rpm depending on installation method
    Affected if The returned version number is less than 1.650
  3. Verify DBI usage with SQL containing comments
    Review application code or configuration to determine if DBI's preparse functionality is invoked, typically when passing SQL statements with comment lines to DBI methods like prepare() or do()
    Affected if SQL statements containing comment lines are being processed through DBI methods like prepare(), do(), or dbh->prepare()

A system is affected if DBI version is below 1.650 AND the preparse function is invoked by passing SQL statements that contain initial comment lines to DBI methods.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.650 or later
Fixed in 1.650
Vendor patch github.com →
Interim mitigation

Upgrade DBI to version 1.650 or later to resolve the out-of-bounds read in the preparse function.

Recommended fix High confidence

DBI 1.650

  1. Upgrade the Perl DBI module to version 1.650 or later
  2. If using CPAN: Run 'cpan DBI' or 'cpanm DBI' to update to the latest version
  3. If using system package manager (e.g., apt, yum, brew): Update the perl-DBI or libdbi-perl package to version 1.650 or later
  4. Verify the installed version by running: perl -MDBI -e 'print $DBI::VERSION'
Caveat Review DBI 1.650 release notes for any API changes or deprecations that may affect existing code

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Dbi Scoped from the published advisory
  • Consultation2.0 h
  • Implementation1.0 h
  • Testing4.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,360
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,176.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-14740 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-14740 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data