CVE-2026-73194: CWE-1284 Improper Validation of Specified Quantity in Input
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.
AI Analysis
Technical Summary
The vulnerability in DBI versions prior to 1.652 involves improper validation of a numeric placeholder that sets the binder counter in the preparse function. The preparse function reserves seven output bytes per input byte, but the numeric parsing uses atoi without range checking. When a large number such as ':2147483648' is used, the binder counter wraps to a negative value (-2147483648 with glibc). Subsequent '?' placeholders expand into ':p-2147483648', which exceeds the buffer allocation, causing a heap out-of-bounds write. The placeholder limit introduced in version 1.650 checks the counter against 99,999, but negative values bypass this check. This vulnerability affects any caller that preparses untrusted statements into ':pN' style placeholders, potentially leading to heap corruption. The '?' and '%s' return styles are unaffected as they perform additional checks.
Potential Impact
This vulnerability allows an attacker to cause a heap out-of-bounds write, which can lead to memory corruption and potentially denial of service or other undefined behavior. The CVSS score of 9.1 reflects a critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality and availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's announcements for updates. Avoid preparsing untrusted statements containing numeric placeholders until a fix is available.
CVE-2026-73194: CWE-1284 Improper Validation of Specified Quantity in Input
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.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in DBI versions prior to 1.652 involves improper validation of a numeric placeholder that sets the binder counter in the preparse function. The preparse function reserves seven output bytes per input byte, but the numeric parsing uses atoi without range checking. When a large number such as ':2147483648' is used, the binder counter wraps to a negative value (-2147483648 with glibc). Subsequent '?' placeholders expand into ':p-2147483648', which exceeds the buffer allocation, causing a heap out-of-bounds write. The placeholder limit introduced in version 1.650 checks the counter against 99,999, but negative values bypass this check. This vulnerability affects any caller that preparses untrusted statements into ':pN' style placeholders, potentially leading to heap corruption. The '?' and '%s' return styles are unaffected as they perform additional checks.
Potential Impact
This vulnerability allows an attacker to cause a heap out-of-bounds write, which can lead to memory corruption and potentially denial of service or other undefined behavior. The CVSS score of 9.1 reflects a critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality and availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's announcements for updates. Avoid preparsing untrusted statements containing numeric placeholders until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-08-11T11:58:19.137Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a805affbf8831d5390c8135
Added to database: 08/15/2026, 12:26:39 UTC
Last enriched: 08/22/2026, 13:12:44 UTC
Last updated: 09/01/2026, 07:53:29 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.