CVE-2016-2047

Source
https://cve.org/CVERecord?id=CVE-2016-2047
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-2047.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-2047
Downstream
Related
Published
2016-01-27T20:59:05.610Z
Modified
2026-04-11T04:02:04.184676Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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."

References

Affected packages

Git / github.com/mariadb/server

Affected ranges

Type
GIT
Repo
https://github.com/mariadb/server
Events
Database specific
{
    "versions": [
        {
            "introduced": "10.0.0"
        },
        {
            "fixed": "10.0.23"
        },
        {
            "introduced": "10.1.0"
        },
        {
            "fixed": "10.1.10"
        }
    ]
}
Type
GIT
Repo
https://github.com/mysql/mysql-server
Events
Introduced
Fixed
Introduced
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "5.5.20"
        },
        {
            "fixed": "5.5.47"
        },
        {
            "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"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "8.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "9.0"
        }
    ]
}

Affected versions

mariadb-10.*
mariadb-10.1.0
mariadb-10.1.2
mariadb-10.1.3
mariadb-10.1.4
mariadb-10.1.5
mariadb-10.1.6
mariadb-10.1.7
mariadb-10.1.8
mariadb-10.1.9
mysql-3.*
mysql-3.23.22-beta
mysql-3.23.28-gamma
mysql-3.23.30-gamma
mysql-3.23.31
mysql-3.23.32
mysql-3.23.33
mysql-3.23.36
mysql-4.*
mysql-4.0.2
mysql-4.0.4
mysql-5.*
mysql-5.1.4
mysql-5.5.15
mysql-5.5.19
mysql-5.5.23
mysql-5.5.25
mysql-5.5.27
mysql-5.5.44
mysql-5.5.47
mysql-5.5.48
mysql-5.6.29
mysql-5.7.11
mysql-8.*
mysql-8.0.0
mysql-9.*
mysql-9.0.0
mysql-9.0.0-release
mysql-cluster-9.*
mysql-cluster-9.0.0

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "42.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "6.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "12.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "14.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.10"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.04"
            }
        ]
    }
]
vanir_signatures_modified
"2026-04-11T04:02:04Z"
vanir_signatures
[
    {
        "deprecated": false,
        "target": {
            "file": "sql/sql_reload.cc",
            "function": "reload_acl_and_cache"
        },
        "id": "CVE-2016-2047-a5ddc231",
        "signature_type": "Function",
        "source": "https://github.com/mariadb/server/commit/89a264809d660fb5a4e7d43e9324b1f529a3a1d7",
        "signature_version": "v1",
        "digest": {
            "function_hash": "111043706433505470027673465066186674885",
            "length": 5996.0
        }
    },
    {
        "deprecated": false,
        "target": {
            "file": "sql/sql_reload.cc"
        },
        "id": "CVE-2016-2047-ac002921",
        "signature_type": "Line",
        "source": "https://github.com/mariadb/server/commit/89a264809d660fb5a4e7d43e9324b1f529a3a1d7",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "159306742910402693391330092690036756588",
                "154471466612685282770028951812159094962",
                "48625389135732133100007130350636776985",
                "293342893800983215307900708602667742465"
            ],
            "threshold": 0.9
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-2047.json"