CVE-2016-1251: There is a vulnerability of type use-after-free affecting DBD::mysql (aka DBD-mysql or the Database Interface
CVE-2016-1251 is a high-severity flaw (CVSS 8.1) affecting dbd-mysql. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Remotely exploitable, no login, no user action
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 8.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 3.1% (top 12%) |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2016-11-29 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2016-1251?
dbd-mysql: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2016-1251 being exploited?
CVE-2016-1251 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2016-1251 affect?
CVE-2016-1251 affects dbd-mysql. Severity is high (CVSS 8.1). 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.
How urgent is CVE-2016-1251?
Priority 60/100. High severity; Remotely exploitable, no login, no user action; On your watchlist
Software pages
MySQL vulnerabilities · Perl vulnerabilities
Related CVEs
- CVE-2017-10789 MEDIUM 5.9 UPGRADE The DBD::mysql module through 4.043 for Perl uses the mysql_ssl=1 setting to mean that SSL is optional (even t
- CVE-2017-10788 CRITICAL 9.8 UPGRADE The DBD::mysql module through 4.043 for Perl allows remote attackers to cause a denial of service (use-after-f
- CVE-2016-1249 MEDIUM 5.9 UPGRADE The DBD::mysql module before 4.039 for Perl, when using server-side prepared statement support, allows attacke
- CVE-2016-1246 HIGH 7.5 UPGRADE MITIGATE Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a d
- CVE-2015-8949 CRITICAL 9.8 DOWNGRADE MITIGATE Use-after-free vulnerability in the my_login function in DBD::mysql before 4.033_01 allows attackers to have u