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 Software | Affected Version | How 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 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 | |
MySQL | >=5.5.0<=5.5.48 | |
MySQL | >=5.6.0<=5.6.29 | |
MySQL | >=5.7.0<=5.7.11 | |
openSUSE | =42.1 | |
Red Hat Enterprise Linux | =6.0 | |
Red Hat Enterprise Linux | =7.0 | |
Debian Debian Linux | =8.0 | |
Debian Debian Linux | =9.0 | |
Ubuntu Linux | =12.04 | |
Ubuntu Linux | =14.04 | |
Ubuntu Linux | =15.10 | |
Ubuntu Linux | =16.04 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2016-2047 is classified as a medium severity vulnerability due to improper hostname verification.
To fix CVE-2016-2047, update your MariaDB, Oracle MySQL, or Percona Server to the recommended versions or later.
CVE-2016-2047 affects MariaDB, Oracle MySQL, and Percona Server versions before specific updates.
There are no specific workarounds for CVE-2016-2047; upgrading to a secure version is the recommended solution.
CVE-2016-2047 could potentially be exploited by man-in-the-middle attacks due to the improper verification of server certificates.