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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | DBI | < 1.652 | 1.652 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libdbi-perl | 1.652-1 | — |
| Debian 13 | libdbi-perl | 1.652-2~deb13u1 | — |
| Debian 12 | libdbi-perl | 1.643-4+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libdbi-perl | 1.647-1ubuntu0.26.04.3 | USN-8841-1 |
| Ubuntu 24.04 LTS | libdbi-perl | 1.643-4ubuntu0.3 | USN-8841-1 |
| Ubuntu 22.04 LTS | libdbi-perl | 1.643-3ubuntu0.3 | USN-8841-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libdbi-perl | 1.643-1ubuntu0.1+esm3 | USN-8841-1 |
| Ubuntu Pro 18.04 LTS | libdbi-perl | 1.640-1ubuntu0.3+esm3 | USN-8841-1 |
| Ubuntu Pro 16.04 LTS | libdbi-perl | 1.634-1ubuntu0.2+esm4 | USN-8841-1 |
| Ubuntu Pro 14.04 LTS | libdbi-perl | 1.630-1ubuntu0.1~esm8 | USN-8841-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | perl-DBI | 1.643-26.el10_2.6 | RHSA-2026:70753 |
| RHEL 9 | perl-DBI | 1.643-9.el9_8.6 | RHSA-2026:71422 |
| RHEL 8 | perl-DBI | 1.641-3.el8_10 | RHSA-2026:71608, RHSA-2026:69112 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | perl-DBI | 1.643-26.el10_2.6 | ALSA-2026:70753 |
| AlmaLinux 9 | perl-DBI | 1.643-9.el9_8.6 | ALSA-2026:71422 |
| AlmaLinux 8 | perl-DBI | 1.641-3.el8_10 | ALSA-2026:71608, ALSA-2026:69112 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | perl-DBI | 1.643-26.el10_2.6 | RLSA-2026:70753 |
| Rocky Linux 9 | perl-DBI | 1.643-9.el9_8.6 | RLSA-2026:71422 |
| Rocky Linux 8 | perl-DBI | 1.641-3.el8_10 | RLSA-2026:71608, RLSA-2026:69112 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-DBI | 1.653.0-1.1 | openSUSE-SU-2026:11754-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | perl-DBI +1 | 1.652-1.amzn2023.0.1 | ALAS2023-2026-2075 |
| Amazon Linux 2 | perl-DBI | 1.627-4.amzn2.0.7 | ALAS2-2026-3871 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl-DBI | 1.652-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | perl-DBI | 1.643-26.el10_2.6 | ELSA-2026-70753 |
| Oracle Linux 9 | perl-DBI | 1.643-9.el9_8.6 | ELSA-2026-71422 |
| Oracle Linux 8 | perl-DBI | 1.641-3.el8_10 | ELSA-2026-71608, ELSA-2026-69112 |
Advisories 22
- ALSA-2026:71422 Important: perl-DBI security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:70753 Important: perl-DBI security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:69112 Important: perl-DBI:1.641 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:71608 Important: perl-DBI security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-8841-1 libdbi-perl vulnerabilities Ubuntu Security Notices (USN) · Sep 30, 2026
- RLSA-2026:71608 Important: perl-DBI security update Rocky Linux Security Advisories · Sep 26, 2026
- RLSA-2026:71422 Important: perl-DBI security update Rocky Linux Security Advisories · Sep 25, 2026
- RHSA-2026:71608 Red Hat Security Advisory: perl-DBI security update Red Hat Security Advisories (RHSA) · Sep 25, 2026
- RHSA-2026:71422 Red Hat Security Advisory: perl-DBI security update Red Hat Security Advisories (RHSA) · Sep 25, 2026
- RHSA-2026:70753 Red Hat Security Advisory: perl-DBI security update Red Hat Security Advisories (RHSA) · Sep 25, 2026
- RHSA-2026:69112 Red Hat Security Advisory: perl-DBI:1.641 security update Red Hat Security Advisories (RHSA) · Sep 25, 2026
- ELSA-2026-71608 Important: perl-DBI security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 25, 2026
- WID-SEC-2026-3403 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 24, 2026
- ELSA-2026-71422 Important: perl-DBI security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Sep 24, 2026
- ELSA-2026-69112 Important: perl-DBI:1.641 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 24, 2026
- RLSA-2026:70753 Important: perl-DBI security update Rocky Linux Security Advisories · Sep 23, 2026
- ELSA-2026-70753 Important: perl-DBI security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Sep 23, 2026
- RLSA-2026:69112 Important: perl-DBI:1.641 security update Rocky Linux Security Advisories · Sep 22, 2026
- NCSC-2026-0375 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Sep 16, 2026
- openSUSE-SU-2026:11754-1 perl-DBI-1.653.0-1.1 on GA media SUSE / openSUSE Security Updates · Sep 12, 2026
- ALAS2-2026-3871 Important: perl-DBI security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 31, 2026
- ALAS2023-2026-2075 Important: perl-DBI security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 31, 2026