CVE-2016-1251
published 2016-11-29CVE-2016-1251: 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…
PriorityP341high8.1CVSS 3.0
AVNACHPRNUINSUCHIHAH
EPSS
3.12%
86.5th percentile
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
70 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
| dbd-mysql_project | dbd-mysql | — | — |
CVSS provenance
nvdv3.08.1HIGHCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.1HIGH
vendor_debian8.1HIGH
vendor_redhat8.1HIGH
vendor_ubuntu5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
libdbd-mysql-perl vulnerabilities
osv·2025-04-07·CVSS 5.9
CVE-2016-1249 [MEDIUM] libdbd-mysql-perl vulnerabilities
libdbd-mysql-perl vulnerabilities
It was discovered that libdbd-mysql-perl did not correctly handle certain
SQL queries. An attacker could possibly use this issue to cause a denial
of service. (CVE-2016-1249)
It was discovered that libdbd-mysql-perl did not correctly handle certain
memory operations, which could lead to a use-after-free vulnerability. A
remote attacker could possibly use this issue to cause a denial of service
or execute arbitrary code. (CVE-2016-1251, CVE-2017-10788)
It was discovered that libdbd-mysql-perl did not properly enforce SSL
connections depending on the mysql_ssl setting. A machine-in-the-middle
attacker could possibly use this issue to spoof servers. (CVE-2017-10789)
GHSA
GHSA-rcfm-gwhc-4xf6: 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
ghsa_unreviewed·2022-05-17
CVE-2016-1251 [HIGH] CWE-416 GHSA-rcfm-gwhc-4xf6: 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
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.
OSV
libdbd-mysql-perl vulnerabilities
osv·2022-04-01·CVSS 5.9
CVE-2016-1249 [MEDIUM] libdbd-mysql-perl vulnerabilities
libdbd-mysql-perl vulnerabilities
It was discovered that the DBD::mysql module, when configured with server-side
prepared statement support, was susceptible to operations that would result in
improper memory access. An attacker could possibly use this issue to cause
DBD::mysql to crash, resulting in a denial of service.
(CVE-2016-1249, CVE-2016-1251)
It was discovered that the DBD::mysql module was susceptible to an operation
that would result in improper memory access, introduced through incorrect
documentation and code examples. An attacker could possibly use this issue to
cause DBD::mysql to crash or potentially cause other, unspecified, impact.
(CVE-2017-10788)
It was discovered that the DBD::mysql module processed SSL/TLS settings in a
way that did not fully correlate with the resp
OSV
CVE-2016-1251: 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
osv·2016-11-29·CVSS 8.1
CVE-2016-1251 [HIGH] CVE-2016-1251: 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
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.
Ubuntu
libdbd-mysql-perl vulnerabilities
vendor_ubuntu·2025-04-07·CVSS 5.9
CVE-2016-1251 [MEDIUM] libdbd-mysql-perl vulnerabilities
Title: libdbd-mysql-perl vulnerabilities
Summary: Several security issues were fixed in libdbd-mysql-perl.
It was discovered that libdbd-mysql-perl did not correctly handle certain
SQL queries. An attacker could possibly use this issue to cause a denial
of service. (CVE-2016-1249)
It was discovered that libdbd-mysql-perl did not correctly handle certain
memory operations, which could lead to a use-after-free vulnerability. A
remote attacker could possibly use this issue to cause a denial of service
or execute arbitrary code. (CVE-2016-1251, CVE-2017-10788)
It was discovered that libdbd-mysql-perl did not properly enforce SSL
connections depending on the mysql_ssl setting. A machine-in-the-middle
attacker could possibly use this issue to spoof servers. (CVE-2017-10789)
Instructions: In
Ubuntu
DBD::mysql vulnerabilities
vendor_ubuntu·2022-04-01·CVSS 5.9
CVE-2016-1249 [MEDIUM] DBD::mysql vulnerabilities
Title: DBD::mysql vulnerabilities
Summary: Several security issues were fixed in DBD::mysql.
It was discovered that the DBD::mysql module, when configured with server-side
prepared statement support, was susceptible to operations that would result in
improper memory access. An attacker could possibly use this issue to cause
DBD::mysql to crash, resulting in a denial of service.
(CVE-2016-1249, CVE-2016-1251)
It was discovered that the DBD::mysql module was susceptible to an operation
that would result in improper memory access, introduced through incorrect
documentation and code examples. An attacker could possibly use this issue to
cause DBD::mysql to crash or potentially cause other, unspecified, impact.
(CVE-2017-10788)
It was discovered that the DBD::mysql module processed SSL/TLS
Red Hat
perl-DBD-MySQL: Use after free when using prepared statements
vendor_redhat·2016-11-18·CVSS 8.1
CVE-2016-1251 [HIGH] CWE-416 perl-DBD-MySQL: Use after free when using prepared statements
perl-DBD-MySQL: Use after free when using prepared statements
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.
Mitigation: This problem is only exposed when the user uses server-side prepared statement support (mysql_server_prepare=1), which is NOT default behavior and was turned off back for all drivers per MySQL AB decision in 2006 due to issues with server-side prepared statements in the server.
Use the default driver setting which uses emulated prepared statements.
Package: perl-DBD-MySQL (Red Hat Enterprise Linux 5) - Will not fix
Package: perl-DBD-MySQL (Red Hat Enterprise Linux 6) - Will not fix
Package: perl-DBD-MySQL (Red Ha
Debian
CVE-2016-1251: libdbd-mysql-perl - There is a vulnerability of type use-after-free affecting DBD::mysql (aka DBD-my...
vendor_debian·2016·CVSS 8.1
CVE-2016-1251 [HIGH] CVE-2016-1251: libdbd-mysql-perl - There is a vulnerability of type use-after-free affecting DBD::mysql (aka DBD-my...
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.
Scope: local
bookworm: resolved (fixed in 4.041-1)
bullseye: resolved (fixed in 4.041-1)
forky: resolved (fixed in 4.041-1)
sid: resolved (fixed in 4.041-1)
trixie: resolved (fixed in 4.041-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements
bugzilla·2016-11-29·CVSS 8.1
CVE-2016-1251 [HIGH] CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements
CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements
A use after free vulnerability when using prepared statements was found in DBD::mysql. Function dbd_st_fetch() via Renew() can reallocate output buffer for mysql_stmt_fetch() call, but it does not update pointer to that buffer in imp_sth->stmt structure initialized by mysql_stmt_bind_result() function, which leads to use after free in any mysql function which access imp_sth->stmt structure.
This vulnerability is present in all releases at least back to versions 3.0 of the driver, which were released in 2005.
Upstream patch:
https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1
References:
http://seclists.org/oss-sec/2016/q4/536
Discussion:
Created perl-DBD-MySQL tracking bug
Bugzilla
CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements [fedora-all]
bugzilla·2016-11-29·CVSS 8.1
CVE-2016-1251 [HIGH] CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements [fedora-all]
CVE-2016-1251 perl-DBD-MySQL: Use after free when using prepared statements [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported v
http://www.openwall.com/lists/oss-security/2016/11/28/2http://www.securityfocus.com/bid/94573https://anonscm.debian.org/cgit/pkg-perl/packages/libdbd-mysql-perl.git/commit/?id=a8b97e4713391b1f8beffbfddac483c276feaff1https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1https://security.gentoo.org/glsa/201701-51https://tracker.debian.org/news/819888http://www.openwall.com/lists/oss-security/2016/11/28/2http://www.securityfocus.com/bid/94573https://anonscm.debian.org/cgit/pkg-perl/packages/libdbd-mysql-perl.git/commit/?id=a8b97e4713391b1f8beffbfddac483c276feaff1https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1https://security.gentoo.org/glsa/201701-51https://tracker.debian.org/news/819888
2016-11-29
Published