CVE-2026-73193

EUVD-2026-59744
DBI versions before 1.652 for Perl allow a heap out-of-bounds write on 32-bit perl via an integer wraparound in the output buffer size computed by preparse.

preparse reserves its output buffer with `newSV(strlen(statement) * 7 + 16)`, budgeting seven output bytes per input byte for the longest ':p99999' expansion. The product is computed in STRLEN, which is 32 bits wide on a 32-bit perl build, so a statement of 613,566,757 bytes multiplies to 4,294,967,299, wraps modulo 2^32 to 3, and reserves 19 bytes. The parser then copies the statement out through a raw pointer with no capacity check, writing the whole 585 MB input past the end of the allocation. The 99,999 placeholder limit does not bound this path, which is reached by ordinary non-placeholder content.

Any caller that passes an untrusted statement of that length to preparse on a 32-bit perl gets a heap out-of-bounds write of attacker controlled bytes. Builds with a 64-bit STRLEN are not affected, since the wrap there needs a statement of about 2.3 exabytes.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 49.19%
Debian logo
Debian Releases
Debian Product
Codename
libdbi-perl
bookworm
vulnerable
bookworm (security)
1.643-4+deb12u2
fixed
forky
1.653-1
fixed
sid
1.654-1
fixed
trixie
1.652-2~deb13u1
fixed
trixie (security)
1.652-2~deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libdbi-perl
bionic
Fixed 1.640-1ubuntu0.3+esm3
released
focal
Fixed 1.643-1ubuntu0.1+esm3
released
jammy
Fixed 1.643-3ubuntu0.3
released
noble
Fixed 1.643-4ubuntu0.3
released
resolute
Fixed 1.647-1ubuntu0.26.04.3
released
trusty
Fixed 1.630-1ubuntu0.1~esm8
released
xenial
Fixed 1.634-1ubuntu0.2+esm4
released
Azure Linux logo
Azure Linux Releases
Azure Package
Release
perl-DBI
Azure Linux 3.0
0:1.652-1.azl3
fixed