Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-73194
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 13:01 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Aug 2026, 12:09 UTC

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.

osv:CVE-2026-73194
Complete source record
{
  "id": "b7523a0573e56969bdcd992bbda7e5cb2299211180907a197a4df80dd1bc4021",
  "url": "https://osv.dev/vulnerability/CVE-2026-73194",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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",
    "summary": "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.",
    "evidence": "osv:CVE-2026-73194",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-73194",
      "aliases": [
        "CVE-2026-73194",
        "GHSA-623j-hfpc-mrc4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/perl5-dbi/dbi",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7fcc1e8d3500daa993ee78575f8ba5ac5590c7c0"
                },
                {
                  "fixed": "29b72ae7d2a8114a734a55840bf1c45b89207809"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.652"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "29b72ae7d2a8114a734a55840bf1c45b89207809"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.651",
            "1.650",
            "1.649",
            "1.648",
            "1.647",
            "1.646",
            "1.645",
            "1.644",
            "1.643_02",
            "1.643_01",
            "1.643",
            "1.642",
            "1.641",
            "1.640",
            "1.639",
            "1.638",
            "1.637",
            "1.636",
            "1.635",
            "1.634",
            "1.633_92",
            "1.633_91",
            "1.633_90",
            "1.633",
            "1.632_90",
            "1.632",
            "1.631",
            "1.630",
            "1.628",
            "1.627",
            "1.626",
            "1.625",
            "1.624",
            "1.622",
            "1.619",
            "1.618",
            "1.615",
            "1.614_90",
            "1.613_93",
            "1.613_92",
            "1.613_91",
            "1.613_90",
            "1.613_71",
            "1.613_70",
            "1.611_94",
            "1.611_93",
            "1.611_92",
            "1.611_91",
            "1.611_90",
            "1.607",
            "1.602",
            "DBI-1.58",
            "DBI-1.57",
            "DBI-1.51",
            "DBI-1.47"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73194.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.710720759Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://www.cve.org/CVERecord?id=CVE-2026-10879",
        "https://www.cve.org/CVERecord?id=CVE-2026-14739",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73194.json",
        "https://github.com/perl5-dbi/dbi/security/advisories/GHSA-623j-hfpc-mrc4",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-73194",
        "https://github.com/perl5-dbi/dbi/commit/29b72ae7d2a8114a734a55840bf1c45b89207809.patch",
        "https://github.com/perl5-dbi/dbi"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1284",
          "CWE-787"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73194.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-73194",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519372,
  "published_at": "2026-08-15T12:09:22.962+00:00"
}