Live threats

All CVEs / Mariadb

CVE-2016-2047Mariadb

Medium 5.9 No auth needed

Priority
51
CVSS 3.0
5.9
EPSS
3.7%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Jan 27, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-254
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Mariadb.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
mariadbmariadb≥ 5.5.20 < 5.5.47
mariadbmariadb≥ 10.0.0 < 10.0.23
mariadbmariadb≥ 10.1.0 < 10.1.10
oraclelinux7
oraclemysql≥ 5.5.0 ≤ 5.5.48
oraclemysql≥ 5.6.0 ≤ 5.6.29
oraclemysql≥ 5.7.0 ≤ 5.7.11
opensuseleap42.1
redhatenterprise_linux6.0
redhatenterprise_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux15.10
canonicalubuntu_linux16.04

Official sources

References

Links published by the sources. Open them with care.