The sslverifyserver_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."
{
"unresolved_ranges": [
{
"extracted_events": [
{
"last_affected": "12.04"
},
{
"last_affected": "14.04"
},
{
"last_affected": "15.10"
},
{
"last_affected": "16.04"
}
],
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"source": "CPE_STRING"
},
{
"extracted_events": [
{
"last_affected": "8.0"
},
{
"last_affected": "9.0"
}
],
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"source": "CPE_STRING"
},
{
"extracted_events": [
{
"last_affected": "42.1"
}
],
"cpes": [
"cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"source": "CPE_STRING"
},
{
"extracted_events": [
{
"last_affected": "7"
}
],
"cpes": [
"cpe:2.3:o:oracle:linux:7:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:linux",
"source": "CPE_STRING"
},
{
"extracted_events": [
{
"last_affected": "6.0"
},
{
"last_affected": "7.0"
}
],
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"source": "CPE_STRING"
}
]
}{
"extracted_events": [
{
"introduced": "5.5.20"
},
{
"fixed": "5.5.47"
},
{
"introduced": "10.0.0"
},
{
"fixed": "10.0.23"
},
{
"introduced": "10.1.0"
},
{
"fixed": "10.1.10"
}
],
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}[
{
"digest": {
"function_hash": "111043706433505470027673465066186674885",
"length": 5996.0
},
"id": "CVE-2016-2047-a5ddc231",
"signature_version": "v1",
"target": {
"file": "sql/sql_reload.cc",
"function": "reload_acl_and_cache"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://github.com/mariadb/server/commit/89a264809d660fb5a4e7d43e9324b1f529a3a1d7"
},
{
"digest": {
"line_hashes": [
"159306742910402693391330092690036756588",
"154471466612685282770028951812159094962",
"48625389135732133100007130350636776985",
"293342893800983215307900708602667742465"
],
"threshold": 0.9
},
"id": "CVE-2016-2047-ac002921",
"signature_version": "v1",
"target": {
"file": "sql/sql_reload.cc"
},
"deprecated": false,
"signature_type": "Line",
"source": "https://github.com/mariadb/server/commit/89a264809d660fb5a4e7d43e9324b1f529a3a1d7"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-2047.json"
"2026-05-30T08:53:10Z"
{
"extracted_events": [
{
"introduced": "5.5.0"
},
{
"last_affected": "5.5.48"
},
{
"introduced": "5.6.0"
},
{
"last_affected": "5.6.29"
},
{
"introduced": "5.7.0"
},
{
"last_affected": "5.7.11"
}
],
"cpe": "cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}