perl-DBD-MySQL: Use after free when using prepared statements
Published Nov 29, 2016
8.1
HIGHCVSS 3.0
EPSS 3.12%
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 n/a Product DBD::mysql before 4.041 Defaultn/a
- Version DBD::mysql before 4.041StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | DBD::mysql before 4.041 | n/a |
|
- 3.0000_0
- 3.0001_1
- 3.0001_2
- 3.0001_3
- 3.0002_1
- 3.0002_2
- 3.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
No data.
Red Hat Enterprise Linux 5
perl-DBD-MySQL
Will not fix
Red Hat Enterprise Linux 6
perl-DBD-MySQL
Will not fix
Red Hat Enterprise Linux 7
perl-DBD-MySQL
Will not fix
Red Hat Software Collections
rh-perl520-perl-DBD-MySQL
Will not fix
Red Hat Software Collections
rh-perl524-perl-DBD-MySQL
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | perl-DBD-MySQL | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | perl-DBD-MySQL | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | perl-DBD-MySQL | Will not fix | n/a |
| Red Hat Software Collections | rh-perl520-perl-DBD-MySQL | Will not fix | n/a |
| Red Hat Software Collections | rh-perl524-perl-DBD-MySQL | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.12% (0.03118) | 87.37th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.12% (0.03118) | 86.09th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.58% (0.00578) | 66.27th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.74% (0.01736) | 71.14th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.58% (0.00578) | 66.94th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.80% (0.00796) | 82.31th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.80% (0.00796) | 81.04th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.80% (0.00796) | 78.94th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
References (10)
- http://www.openwall.com/lists/oss-security/2016/11/28/2 x_refsource_CONFIRMMailing ListThird Party Advisory
- http://www.securityfocus.com/bid/94573 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2016-1251 Vendor Advisory
- https://anonscm.debian.org/cgit/pkg-perl/packages/libdbd-mysql-perl.git/commit/?id=a8b97e4713391b1f8beffbfddac483c276feaff1 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1399580 Issue Tracking
- https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-1251
- https://security.gentoo.org/glsa/201701-51 vendor-advisoryx_refsource_GENTOO
- https://tracker.debian.org/news/819888 x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-1251
| Link | Providers | Tags |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2016/11/28/2 | x_refsource_CONFIRMMailing ListThird Party Advisory | |
| http://www.securityfocus.com/bid/94573 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2016-1251 | Vendor Advisory | |
| https://anonscm.debian.org/cgit/pkg-perl/packages/libdbd-mysql-perl.git/commit/?id=a8b97e4713391b1f8beffbfddac483c276feaff1 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1399580 | Issue Tracking | |
| https://github.com/perl5-dbi/DBD-mysql/commit/3619c170461a3107a258d1fd2d00ed4832adb1b1 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-1251 | ||
| https://security.gentoo.org/glsa/201701-51 | vendor-advisoryx_refsource_GENTOO | |
| https://tracker.debian.org/news/819888 | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2016-1251 |
Change history (0)
No recorded changes yet.