Description
There is a vulnerability of type use-after-free affecting DBD::mysql (aka DBD-mysql or the Database Interface (DBI) MySQL driver for Perl) 3.x and 4.x before 4.041 when used with mysql_server_prepare=1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | DBD::mysql before 4.041 | DBD::mysql before 4.041 | — |
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 | libdbd-mysql-perl | 4.041-1 | — |
| Debian 13 | libdbd-mysql-perl | 4.041-1 | — |
| Debian 12 | libdbd-mysql-perl | 4.041-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libdbd-mysql-perl | 4.033-1ubuntu0.1+esm1 | USN-5344-1 |
| Ubuntu Pro 14.04 LTS | libdbd-mysql-perl | 4.025-1ubuntu0.1+esm1 | USN-7417-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | perl-DBD-mysql | 4.021-11.1 | SUSE-SU-2017:0123-1 |
| SLES 12 SP1 | perl-DBD-mysql | 4.021-11.1 | SUSE-SU-2017:0123-1 |
| SLES 11 SP4 | perl-DBD-mysql | 4.008-6.1 | SUSE-SU-2017:0025-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP2 | perl-DBD-mysql | 4.021-11.1 | SUSE-SU-2017:0123-1 |
| SLES for SAP 12 SP1 | perl-DBD-mysql | 4.021-11.1 | SUSE-SU-2017:0123-1 |
| SLES for SAP 11 SP4 | perl-DBD-mysql | 4.008-6.1 | SUSE-SU-2017:0025-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-DBD-mysql | 4.041-2.1 | openSUSE-SU-2024:10186-1 |
Advisories 6
- USN-5344-1 libdbd-mysql-perl vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-7417-1 libdbd-mysql-perl vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2017:0025-1 Security update for perl-DBD-mysql SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:0123-1 Security update for perl-DBD-mysql SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10186-1 perl-DBD-mysql-4.041-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-0716 Perl: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Apr 6, 2025
References
- https://tracker.debian.org/news/819888
- http://www.openwall.com/lists/oss-security/2016/11/28/2
- https://anonscm.debian.org/cgit/pkg-perl/packages/libdbd-mysql-perl.git/commit/?id=a8b97e4713391b1f8beffbfddac483c276feaff1
- 94573 vdb-entry
- https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1
- GLSA-201701-51 vendor-advisory