# CVE-2026-73194: DBI versions before 1.652 for Perl allow a heap out-of-bounds write via an unvalidated numeric placeholder that sets the binder counter in preparse

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-08-15T12:09:22.962Z
- Modified: 2026-08-28T15:42:20.060Z
- Weaknesses: CWE-787, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

DBI versions before 1.652 for Perl allow a heap out-of-bounds write via an unvalidated numeric placeholder that sets the binder counter in preparse.

preparse reserves seven output bytes per input byte, the width of the longest ':p99999' expansion. The ':N' branch parses the number with `atoi(src)` and assigns it to the binder counter with no range check, so a statement containing ':2147483648' leaves the counter negative (-2147483648 with glibc, where atoi wraps). Each following '?' then expands through `sprintf(start, ":p%d", idx++)` to ':p-2147483648', 14 bytes with the terminating NUL where the buffer budgets 7. The placeholder limit added in 1.650 tests the counter against 99,999, which a negative counter passes.

Any caller that preparses an untrusted statement into ':pN' style placeholders gets a heap out-of-bounds write that grows with the number of '?' marks following the poisoned placeholder. The '?' and '%s' return styles compare the parsed number against the expected sequence and error out, and are unaffected.

(As written by CVE List.)

## Affected

- DBI: before 1.652

## References

- <https://github.com/perl5-dbi/dbi/security/advisories/GHSA-623j-hfpc-mrc4> (vendor-advisory)
- <https://github.com/perl5-dbi/dbi/commit/29b72ae7d2a8114a734a55840bf1c45b89207809.patch> (patch)
- <https://www.cve.org/CVERecord?id=CVE-2026-14739> (related)
- <https://www.cve.org/CVERecord?id=CVE-2026-10879> (related)

## Sources

- CVE List: [CVE-2026-73194](https://www.cve.org/CVERecord?id=CVE-2026-73194), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-73194](https://nvd.nist.gov/vuln/detail/CVE-2026-73194), Public domain, modified 2026-08-28

---

Page: https://cve.day/CVE-2026-73194 · Whole record: https://cve.day/CVE-2026-73194.json · Rebuilt by cve.day 2026-11-25T22:59:33.214Z
