CVE-2026-73193DBI versions before 1.652 for Perl allow a heap out-of-bounds write on 32-bit perl via…
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libdbi-perl | Fixed | 1.647-1ubuntu0.26.04.3 | UBUNTU-CVE-2026-73193 |
| Ubuntu 24.04 | libdbi-perl | Fixed | 1.643-4ubuntu0.3 | UBUNTU-CVE-2026-73193 |
| Ubuntu 22.04 | libdbi-perl | Fixed | 1.643-3ubuntu0.3 | UBUNTU-CVE-2026-73193 |
| Ubuntu 20.04 | libdbi-perl | Fix pending | 1.643-1ubuntu0.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-73193 |
| Ubuntu 18.04 | libdbi-perl | Fix pending | 1.640-1ubuntu0.3+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-73193 |
| Ubuntu 16.04 | libdbi-perl | Fix pending | 1.634-1ubuntu0.2+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-73193 |
| Ubuntu 14.04 | libdbi-perl | Fix pending | 1.630-1ubuntu0.1~esm8 (Ubuntu Pro) | UBUNTU-CVE-2026-73193 |
| Debian 14 | libdbi-perl | Fixed | 1.652-1 | DEBIAN-CVE-2026-73193 |
| Debian 13 | libdbi-perl | Fixed | 1.652-2~deb13u1 | DEBIAN-CVE-2026-73193 |
| Debian 12 | libdbi-perl | Fixed | 1.643-4+deb12u2 | DEBIAN-CVE-2026-73193 |
| Red Hat Enterprise Linux 10 | perl-DBI | Not affected | ||
| Red Hat Enterprise Linux 9 | perl-DBI | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-DBI | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-DBI | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | perl-DBI | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- DBI: affected: before 1.652; fixed in
1.652
Solution: Upgrade to DBI 1.652 or later.
Workaround: On 32-bit depoyments that cannot be upgraded, limit the size of SQL statements under 292 megabytes.
Vendor advisories:
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-wj3v-c3hh-mhqr (vendor-advisory)
- https://github.com/perl5-dbi/dbi/commit/c751ae5a5a6f56c2f8284f37c1f4d43500352ef1.patch (patch)
References
- https://www.cve.org/CVERecord?id=CVE-2026-14739
- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-wj3v-c3hh-mhqr
- https://github.com/perl5-dbi/dbi/commit/c751ae5a5a6f56c2f8284f37c1f4d43500352ef1.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.