CWE
254
Advisory Published
CVE Published
Updated

CVE-2016-2047

First published: Tue Jan 26 2016(Updated: )

The ssl_verify_server_cert 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."

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
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>=5.5.20<5.5.47
MariaDB>=10.0.0<10.0.23
MariaDB>=10.1.0<10.1.10
Oracle Linux=7
MySQL>=5.5.0<=5.5.48
MySQL>=5.6.0<=5.6.29
MySQL>=5.7.0<=5.7.11
SUSE Linux=42.1
Red Hat Enterprise Linux=6.0
Red Hat Enterprise Linux=7.0
Debian Linux=8.0
Debian Linux=9.0
Ubuntu=12.04
Ubuntu=14.04
Ubuntu=15.10
Ubuntu=16.04

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2016-2047?

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

  • 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.

  • Which software is affected by CVE-2016-2047?

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

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203