CVE-2016-2047: Medium severity mariadb vulnerability

Published Jan 26, 2016
·
Updated

A vulnerability was found in a way mysql verifies certificates. Sslverifyservercert() function parses the output of X509NAMEoneline() to get the value of the /CN=... field. But if this string — "/CN=" — is present as a part of the value of some other field that might cause the output to be parsed incorrectly.

MariaDB upstream bug report:

https://mariadb.atlassian.net/browse/MDEV-9212

MariaDB upstream fix:

https://github.com/MariaDB/server/commit/f0d774d48416bb06063184380b684380ca005a41

External reference:

http://www.openwall.com/lists/oss-security/2016/01/26/3

Other sources

The sslverifyservercert function in sql-common/client.c in MariaDB before 5.5.47, 10.0.x before 10.0.23, and 10.1.x before 10.1.10; Oracle MySQL 5.5.48 and earlier, 5.6.29 and earlier, and 5.7.11 and earlier; and Percona Server do not properly verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a "/CN=" string in a field in a certificate, as demonstrated by "/OU=/CN=bar.com/CN=foo.com."

MITRE

Affected Software

22 affected componentsFixes available
redhat/mysql<5.5.48
5.5.48
redhat/mysql<5.6.29
5.6.29
redhat/mysql<5.7.11
5.7.11
redhat/mariadb<5.5.47
5.5.47
redhat/mariadb<10.1.10
10.1.10
redhat/mariadb<10.0.23
10.0.23
MariaDB MariaDB>=5.5.20<5.5.47
MariaDB MariaDB>=10.0.0<10.0.23
MariaDB MariaDB>=10.1.0<10.1.10
Oracle Linux=7
Oracle MySQL>=5.5.0<=5.5.48
Oracle MySQL>=5.6.0<=5.6.29
Oracle MySQL>=5.7.0<=5.7.11
openSUSE Leap=42.1
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04

Event History

Jan 27, 2016
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2016-2047?

CVE-2016-2047 is classified as a medium severity vulnerability due to improper hostname verification.

2

How do I fix CVE-2016-2047?

To fix CVE-2016-2047, update your MariaDB, Oracle MySQL, or Percona Server to the recommended versions or later.

3

Which software is affected by CVE-2016-2047?

CVE-2016-2047 affects MariaDB, Oracle MySQL, and Percona Server versions before specific updates.

4

Are there any workarounds for CVE-2016-2047?

There are no specific workarounds for CVE-2016-2047; upgrading to a secure version is the recommended solution.

5

What can attack vectors exploit CVE-2016-2047?

CVE-2016-2047 could potentially be exploited by man-in-the-middle attacks due to the improper verification of server certificates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203