CVE-2016-1251 Use after free in DBD::mysql before 4.041
A use-after-free flaw in the Perl MySQL driver allows attackers to execute arbitrary code or cause denial of service when server-side prepared statements are enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-1251?
CVE-2016-1251 is a high-severity use after free vulnerability in DBD::mysql before 4.041, published on 29 Nov 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2016-1251?
It affects 1 product.
Linux distribution packages (3)
perl-DBD-mysql SUSE:Linux Enterprise Server 11 SP4 | All versions | 4.008-6.1 |
perl-DBD-mysql SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 4.008-6.1 |
perl-DBD-mysql SUSE:Linux Enterprise Software Development Kit 11 SP4 | All versions | 4.008-6.1 |
Products include Dbd-Mysql Project Dbd-Mysql.
How do I fix CVE-2016-1251?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2016-1251 being exploited?
There is no known exploitation of CVE-2016-1251 in the wild and no public exploit code.
Other vulnerabilities in DBD::mysql before 4.041
Sources
Also known as DEBIAN-CVE-2016-1251, GHSA-rcfm-gwhc-4xf6, SUSE-SU-2017:0025-1, UBUNTU-CVE-2016-1251.