DHI-tmka-o2yc-73pc-4qkj

Source
https://scout.docker.com/v/DHI-tmka-o2yc-73pc-4qkj
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-tmka-o2yc-73pc-4qkj.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-tmka-o2yc-73pc-4qkj
Upstream
Published
2026-11-11T17:18:35Z
Modified
2026-11-16T02:36:19Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
DBI versions before 1.652 for Perl allow a heap out-of-bounds write via an unvalidated numeric placeholder that sets…
Details

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.

References

Affected packages

Docker Hardened Images:Alpine:3.24 / perl-dbi

Package

Name
perl-dbi
Purl
pkg:apk/dhi/perl-dbi

Affected ranges

Affected versions

1.*
1.648-r0
1.651-r0
1.651-r1
1.651-r2

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-tmka-o2yc-73pc-4qkj.json"