Every CVE Search/ Get API key

CVE-2016-1246

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers...

7.5 HighFix available

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

4.06%Up 3.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
CVE-2016-1246
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
CVE-2016-1246
Updated
2026-11-02
EUVDEUVD-2016-2345 No score

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
EUVD-2016-2345
Updated
2026-11-03
GitHub AdvisoriesGHSA-cc4c-8jxw-7x26 7.5

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers...

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
GHSA-cc4c-8jxw-7x26
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 7.5

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
CVE-2016-1246
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-1246 7.5

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
DEBIAN-CVE-2016-1246
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2016-1246 7.5

Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message.

Record
UBUNTU-CVE-2016-1246
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2018-0031 No score

Updated perl-DBD-mysql packages fix security vulnerability

Pali Rohar discovered that DBD::mysql constructed an error message in a fixed-length buffer, leading to a crash (_FORTIFY_SOURCE failure) and, potentially, to denial of service (CVE-2016-1246).

A vulnerability was discovered in perl-DBD-MySQL that can lead to an out-of-bounds read when using server side prepared statements with an unaligned number of placeholders in WHERE condition and output fields in SELECT expression (CVE-2016-1249).

There is a vulnerability of type use-after-free affecting DBD::mysql before 4.041 when used with mysql_server_prepare=1 (CVE-2016-1251).

The DBD::mysql module through 4.043 for Perl allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by triggering (1) certain error responses from a MySQL server or (2) a loss of a network connection to a MySQL server. The use-after-free defect was introduced by relying on incorrect Oracle mysql_stmt_close documentation and code examples (CVE-2017-10788).

The DBD::mysql module through 4.043 for Perl uses the mysql_ssl=1 setting to mean that SSL is optional (even though this setting's documentation has a "your communication with the server will be encrypted" statement), which allows man-in-the-middle attackers to spoof servers via a cleartext-downgrade attack (CVE-2017-10789).

Note that the CVE-2016-1246, CVE-2017-1249, and CVE-2016-1251 issues only affected Mageia 5.

Also note that server-side prepared statements are disabled by default.

Record
MGASA-2018-0031
Updated
2026-11-02
OSVopenSUSE-SU-2024:10186-1 No score

perl-DBD-mysql-4.041-2.1 on GA media

These are all security issues fixed in the perl-DBD-mysql-4.041-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10186-1
Updated
2026-11-02
OSVSUSE-SU-2017:0122-1 No score

Security update for perl-DBD-mysql

This update for perl-DBD-mysql fixes the following issues:

  • CVE-2016-1246: Buffer overflow allowed context-dependent attackers to cause a denial of service (crash) via vectors related to an error message (bsc#1002626).
  • CVE-2016-1249: Out-of-bounds read when using server-side prepared statement support (bsc#1010457).
Record
SUSE-SU-2017:0122-1
Updated
2026-11-02
OSVSUSE-SU-2017:0123-1 No score

Security update for perl-DBD-mysql

This update for perl-DBD-mysql fixes the following issues:

  • CVE-2016-1251: A use-after-free when used with mysql_server_prepare=1 (bsc#1012546).
  • CVE-2016-1246: Buffer overflow allowed context-dependent attackers to cause a denial of service (crash) via vectors related to an error message (bsc#1002626).
  • CVE-2016-1249: Out-of-bounds read when using server-side prepared statement support (bsc#1010457).
Record
SUSE-SU-2017:0123-1
Updated
2026-11-02
OSVUSN-3103-1 No score

libdbd-mysql-perl vulnerabilities

It was discovered that DBD::mysql incorrectly handled certain memory operations. A remote attacker could use this issue to cause DBD::mysql to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2014-9906)

Hanno Böck discovered that DBD::mysql incorrectly handled certain memory operations. A remote attacker could use this issue to cause DBD::mysql to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-8949)

Pali Rohár discovered that DBD::mysql incorrectly handled certain user supplied data. A remote attacker could use this issue to cause DBD::mysql to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-1246)

Record
USN-3103-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libdbd-mysql-perl
Debian:12
before 4.037-1
4.037-1
libdbd-mysql-perl
Debian:13
before 4.037-1
4.037-1
libdbd-mysql-perl
Debian:14
before 4.037-1
4.037-1
libdbd-mysql-perl
Debian:7
before 4.021-1+deb7u2, plus listed versions
4.021-14.021-1+deb7u1
4.021-1+deb7u2
libdbd-mysql-perl
Debian:8
before 4.028-2+deb8u2, plus listed versions
4.028-24.028-2+deb8u1
4.028-2+deb8u2
perl-DBD-mysql
Mageia:5
before 4.43.0-1.mga5
4.43.0-1.mga5
perl-DBD-mysql
Mageia:6
before 4.43.0-1.mga6
4.43.0-1.mga6
perl-DBD-mysql
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 4.008-9.1
4.008-9.1
perl-DBD-mysql
SUSE:Linux Enterprise Server 11 SP4
before 4.008-9.1
4.008-9.1
perl-DBD-mysql
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 4.008-9.1
4.008-9.1
Show 8 moreShow less
Affected packages
PackageAffectedFixed
perl-DBD-mysql
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 4.021-11.1
4.021-11.1
perl-DBD-mysql
SUSE:Linux Enterprise Server 12 SP1
before 4.021-11.1
4.021-11.1
perl-DBD-mysql
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 4.021-11.1
4.021-11.1
perl-DBD-mysql
SUSE:Linux Enterprise Server 12 SP2
before 4.021-11.1
4.021-11.1
perl-DBD-mysql
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 4.021-11.1
4.021-11.1
libdbd-mysql-perl
Ubuntu:14.04:LTS
before 4.025-1ubuntu0.1, plus listed versions
4.023-14.024-14.025-1
4.025-1ubuntu0.1
libdbd-mysql-perl
Ubuntu:16.04:LTS
before 4.033-1ubuntu0.1, plus listed versions
4.028-24.033-14.033-1build14.033-1build2
4.033-1ubuntu0.1
perl-DBD-mysql
openSUSE:Tumbleweed
before 4.041-2.1
4.041-2.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-1246 is a high vulnerability (CVSS 7.5) in Dbd-mysql Project Dbd-mysql, published October 3, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.06%, the 90th percentile. Fixed in libdbd-mysql-perl 4.037-1.

References

Show 21 moreShow less
MoveEnter Open