CVE-2016-1251 in Dbd-Mysql Project Dbd-Mysql
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Dbd-Mysql Project | Dbd-Mysql | 3.0000_0 3.0001_1 3.0001_2 3.0001_3 3.0002_1 3.0002_2+63 more3.0002_3 3.0002_4 3.0002_5 3.0003_1 3.0004_1 3.0005 3.0005_1 3.0007_2 3.0008_1 3.0009_1 4.00 4.001 4.002 4.003 4.004 4.005 4.006 4.007 4.008 4.009 4.010 4.011 4.012 4.013 4.014 4.015 4.016 4.017 4.018 4.019 4.020 4.021 4.022 4.023 4.024 4.025 4.026 4.027 4.028 4.029 4.030_01 4.030_02 4.031 4.032 4.032_01 4.032_02 4.032_03 4.033 4.033_01 4.033_02 4.033_03 4.034 4.035 4.035_01 4.035_02 4.035_03 4.036 4.037 4.037_01 4.038 4.038_01 4.039 4.040 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2016-1251 |
|---|---|
| BreachSpider ID | BS-2016-GLOBAL-253097-H |
| CVSS vector | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2016-11-29 |
| Last modified | 2026-05-06 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2016. A high severity vulnerability affects Dbd-Mysql Project systems (CVE-2016-1251). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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. CVSS vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2016-1251?
This vulnerability was disclosed in 2016. A high severity vulnerability affects Dbd-Mysql Project systems (CVE-2016-1251). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2016-1251?
CVE-2016-1251 has CVSS 8.1 (High). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.1%.
Is CVE-2016-1251 actively exploited?
No confirmed active exploitation of CVE-2016-1251 as of 2026-05-30.
How do I remediate CVE-2016-1251?
Priority: MEDIUM.
What systems are affected by CVE-2016-1251?
CVE-2016-1251 affects Dbd-Mysql Project Dbd-Mysql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Dbd-Mysql Project","product":"Dbd-Mysql","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-05-06.