Skip to content
OpenAdvisories
Unscored CVE-2016-2047 EUVD-2016-3153GHSA-gw5g-54qg-7583

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; Orac…

Published Jan 27, 2016 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mariadb 10.6.4-2.1 openSUSE-SU-2024:11038-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 mariadb +7 1:5.5.47-1.el7_2 ELSA-2016-0534

Advisories 17

References