CVE-2026-9698: DBI versions before 1.648 for Perl saved errors in a limited-sized buffer Robert Rothenberg 09 Jun 2026 07:26 UTC

========================================================================
CVE-2026-9698                                        CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-9698
   Distribution:  DBI
       Versions:  before 1.648

       MetaCPAN:  https://metacpan.org/dist/DBI
       VCS Repo:  https://github.com/perl5-dbi/dbi

DBI versions before 1.648 for Perl saved errors in a limited-sized
buffer

Description
-----------
DBI versions before 1.648 for Perl saved errors in a limited-sized
buffer.

Error messages that were returned when RaiseError, PrintError or
HandleError were set were written to a 200-byte buffer without a length
limit.

Attackers that can influence the error text in an application can
trigger a buffer overflow.

Problem types
-------------
- CWE-787 Out-of-bounds Write

Solutions
---------
Upgrade to DBI 1.648 or later.

References
----------
https://metacpan.org/release/HMBRAND/DBI-1.648/changes
https://github.com/perl5-dbi/dbi/commit/bfe5d73c162d2d1f761a639a0aa33aad6a9eb54e.patch

Timeline
--------
- 2026-04-25: Issue reported to CPANSec.
- 2026-05-27: Commit fixed the issue in DBI.
- 2026-06-04: DBI 1.648 released.