Description
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."
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | mariadb-10.0 | 10.0.23-0+deb8u1 | DSA-3453-1 |
| Debian 8 | mysql-5.5 | 5.5.49-0+deb8u1 | DSA-3557-1 |
| Debian 7 | mysql-5.5 | 5.5.49-0+deb7u1 | DLA-447-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | mysql-5.7 | 5.7.12-0ubuntu1 | USN-2954-1 |
| Ubuntu 16.04 LTS | percona-server-5.6 | No fix yet | — |
| Ubuntu 16.04 LTS | percona-xtradb-cluster-5.6 | 5.6.34-26.19-0ubuntu0.16.04.1 | — |
| Ubuntu 14.04 LTS | mariadb-5.5 | 5.5.47-1ubuntu0.14.04.1 | — |
| Ubuntu 14.04 LTS | mysql-5.5 | 5.5.49-0ubuntu0.14.04.1 | USN-2953-1 |
| Ubuntu 14.04 LTS | mysql-5.6 | 5.6.30-0ubuntu0.14.04.1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | mariadb +7 | 1:5.5.47-1.el7_2 | RHSA-2016:0534 |
| RHEL 2 | mariadb55-mariadb +5 | 5.5.49-1.el6 | RHSA-2016:1481 |
| RHEL 2 | mysql55-mysql +5 | 5.5.50-1.el6 | RHSA-2016:1480 |
| RHEL 2 | rh-mariadb100-mariadb +8 | 1:10.0.25-4.el6 | RHSA-2016:1132 |
| RHEL 2 | rh-mysql56-mysql +7 | 5.6.30-1.el6 | RHSA-2016:0705 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| SLES 12 SP1 | mariadb | 10.0.25-6.1 | SUSE-SU-2016:1620-1 |
| SLES 12 | mariadb | 10.0.25-20.6.1 | SUSE-SU-2016:1619-1 |
| SLES 11 SP4 | mysql | 5.5.49-0.20.1 | SUSE-SU-2016:1279-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES for SAP 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES for SAP 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP1 | mariadb | 10.0.25-6.1 | SUSE-SU-2016:1620-1 |
| SLES for SAP 12 | mariadb | 10.0.25-20.6.1 | SUSE-SU-2016:1619-1 |
| SLES for SAP 11 SP4 | mysql | 5.5.49-0.20.1 | SUSE-SU-2016:1279-1 |
| SLE HPC 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLE HPC 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mariadb | 10.6.4-2.1 | openSUSE-SU-2024:11038-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | mariadb +7 | 1:5.5.47-1.el7_2 | ELSA-2016-0534 |
Advisories 17
- RHSA-2016:1132 Red Hat Security Advisory: rh-mariadb100-mariadb security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2016:1481 Red Hat Security Advisory: mariadb55-mariadb security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1480 Red Hat Security Advisory: mysql55-mysql security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0705 Red Hat Security Advisory: rh-mysql56-mysql security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0534 Red Hat Security Advisory: mariadb security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2954-1 mysql-5.7 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-2953-1 mysql-5.5, mysql-5.6 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-447-1 mysql-5.5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3557-1 mysql-5.5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3453-1 mariadb-10.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1279-1 Security update for mysql SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2023:4991-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1620-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11038-1 libmariadbd-devel-10.6.4-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1619-1 Security update for mariadb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2023:3956-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2016-0534 Moderate: mariadb security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 31, 2016
References
- SUSE-SU-2016:1620 vendor-advisory
- RHSA-2016:1481 vendor-advisory
- RHSA-2016:1132 vendor-advisory
- RHSA-2016:0534 vendor-advisory
- 1035606 vdb-entry
- [oss-security] 20160126 Flaw in mariadb clients SSL certificate validation mailing-list
- USN-2953-1 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- openSUSE-SU-2016:1332 vendor-advisory
- USN-2954-1 vendor-advisory
- SUSE-SU-2016:1619 vendor-advisory
- RHSA-2016:1480 vendor-advisory
- 81810 vdb-entry
- openSUSE-SU-2016:1664 vendor-advisory
- https://mariadb.atlassian.net/browse/MDEV-9212
- https://mariadb.com/kb/en/mdb-10023-rn/
- DSA-3557 vendor-advisory
- DSA-3453 vendor-advisory
- https://mariadb.com/kb/en/mariadb/mariadb-5547-release-notes/
- http://www.oracle.com/technetwork/security-advisory/cpuapr2016v3-2985753.html
- openSUSE-SU-2016:1686 vendor-advisory
- https://mariadb.com/kb/en/mariadb/mariadb-10110-release-notes/
- RHSA-2016:0705 vendor-advisory
- SUSE-SU-2016:1279 vendor-advisory