CVE-2016-2047
Reported by mitre · Published January 27, 2016
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mysql-5.7 | Ubuntu:16.04:LTS | 5.7.12-0ubuntu1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Jan 27, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch (7 in total, the first dated here)
- Mar 5, 2026 Security Advisory (12 in total, the first dated here)
- Oct 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-2047
vulnetix vdb fixes CVE-2016-2047
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-2047/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- SUSE-SU-2016:1620 vendor-advisoryx_refsource_SUSE
- RHSA-2016:1481 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:1132 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:0534 vendor-advisoryx_refsource_REDHAT
- 1035606 vdb-entryx_refsource_SECTRACK
- [oss-security] 20160126 Flaw in mariadb clients SSL certificate validation mailing-listx_refsource_MLIST
- USN-2953-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_CONFIRM
- openSUSE-SU-2016:1332 vendor-advisoryx_refsource_SUSE
- USN-2954-1 vendor-advisoryx_refsource_UBUNTU
- SUSE-SU-2016:1619 vendor-advisoryx_refsource_SUSE
- RHSA-2016:1480 vendor-advisoryx_refsource_REDHAT
- 81810 vdb-entryx_refsource_BID
- openSUSE-SU-2016:1664 vendor-advisoryx_refsource_SUSE
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- DSA-3557 vendor-advisoryx_refsource_DEBIAN
- DSA-3453 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- x_refsource_CONFIRM
…and 4 more