PT-2026-72890 · Cpan · Dbi
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
DBI versions prior to 1.652
Description
On 32-bit Perl builds, an integer wraparound occurs in the output buffer size calculation within the
preparse() function. The buffer is reserved using newSV(strlen(statement) * 7 + 16), where the product is computed using a 32-bit STRLEN. A statement of approximately 613,566,757 bytes causes the calculation to wrap modulo 2^32, resulting in a significantly smaller memory allocation. Subsequently, the parser copies the input via a raw pointer without capacity checks, leading to a heap out-of-bounds write of attacker-controlled bytes. This issue is not present in 64-bit builds.Recommendations
Update to version 1.652 or later.
Exploit
Fix
Integer Overflow
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Dbi