Vulnerability · Published Aug 15, 2026 · Assigned by CPANSec
CVE-2026-73193DBI 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
Critical 9.8
In plain English
A critical-severity integer overflow in DBI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libdbi-perl | 1.643-4+deb12u2 | DEBIAN-CVE-2026-73193 |
| Debian:13 | libdbi-perl | 1.652-2~deb13u1 | DEBIAN-CVE-2026-73193 |
| Debian:14 | libdbi-perl | 1.652-1 | DEBIAN-CVE-2026-73193 |
| Ubuntu:22.04:LTS | libdbi-perl | 1.643-3ubuntu0.3 | UBUNTU-CVE-2026-73193 |
| Ubuntu:22.04:LTS | libdbi-perl | 1.643-3ubuntu0.3 | USN-8841-1 |
| Ubuntu:24.04:LTS | libdbi-perl | 1.643-4ubuntu0.3 | USN-8841-1 |
| Ubuntu:24.04:LTS | libdbi-perl | 1.643-4ubuntu0.3 | UBUNTU-CVE-2026-73193 |
| Ubuntu:26.04:LTS | libdbi-perl | 1.647-1ubuntu0.26.04.3 | USN-8841-1 |
| Ubuntu:26.04:LTS | libdbi-perl | 1.647-1ubuntu0.26.04.3 | UBUNTU-CVE-2026-73193 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| DBI | 0 – before 1.652 |
Weakness: CWE-190, CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H