CVE-2016-0639
Critical · 9.8CVSS
9.8
EPSS
10.2%
Published
Apr 21, 2016
CISA due date
—
Cloudanix analysis
A flaw in how the database handles logins could let outsiders access or change information without proper permission.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Network Service
- Class
- Authentication Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Remote attackers can bypass pluggable authentication mechanisms in MySQL, allowing unauthorized access that impacts confidentiality, integrity, and availability of database resources.
Why it matters to the business
Attackers could gain unauthorized access to sensitive data, alter records, or disrupt database services, leading to operational downtime and compliance risks in environments relying on MySQL.
How an attack unfolds
An attacker targets an exposed MySQL server and crafts authentication requests that exploit weaknesses in the pluggable authentication modules to bypass credential checks and obtain a valid session.
How to fix it
Upgrade Oracle MySQL to versions later than 5.6.29 and 5.7.11, apply all vendor security updates for affected Red Hat Enterprise Linux packages, and restrict network access to database ports.
How to confirm the fix worked
Confirm MySQL server versions exceed the vulnerable releases, review authentication configuration for pluggable modules, and test that remote connections require valid credentials.
Typical attack path
- Scan for publicly reachable MySQL instances on default or known ports
- Send specially crafted authentication packets targeting pluggable auth components
- Bypass login controls to obtain an authenticated session
- Execute database queries or administrative commands with elevated privileges
How to detect it
Examine MySQL error and general query logs for repeated authentication attempts from the same source that suddenly succeed, and review connection records for sessions established without standard credential validation.
What your security team should do
- Prioritize patching all MySQL deployments to supported fixed releases
- Implement network segmentation to limit exposure of database services
- Enable detailed authentication logging and monitor for anomalous login patterns
- Review and harden pluggable authentication configurations
The record
Unspecified vulnerability in Oracle MySQL 5.6.29 and earlier and 5.7.11 and earlier allows remote attackers to affect confidentiality, integrity, and availability via vectors related to Pluggable Authentication.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-bench | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-common | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-config | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-debuginfo | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-devel | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-errmsg | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-server | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mysql56-mysql-test | 0 | 0:5.6.30-1.el6 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-bench | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-common | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-config | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-debuginfo | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-devel | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-errmsg | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-server | 0 | 0:5.6.30-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-mysql56-mysql-test | 0 | 0:5.6.30-1.el7 |
| Ubuntu:14.04:LTS | mysql-5.5 | 0 | 5.5.49-0ubuntu0.14.04.1 |
| Ubuntu:14.04:LTS | mysql-5.6 | 0 | 5.6.30-0ubuntu0.14.04.1 |
| Ubuntu:16.04:LTS | mysql-5.7 | 0 | 5.7.12-0ubuntu1 |
| Ubuntu:16.04:LTS | percona-server-5.6 | 0 | No fix |
| Ubuntu:16.04:LTS | percona-xtradb-cluster-5.6 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | percona-server-5.6 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | percona-xtradb-cluster-5.6 | 0 | No fix |
Related vulnerabilities
- CVE-2017-3599 Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server… Also affects rh-mysql56-mysql
- CVE-2017-3302 Crash in libmysqlclient.so in Oracle MySQL before 5.6.21 and 5.7.x before 5.7.5 and… Also affects rh-mysql56-mysql
- CVE-2016-6662 Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB… Also affects rh-mysql56-mysql
- CVE-2016-3521 Unspecified vulnerability in Oracle MySQL 5.5.49 and earlier, 5.6.30 and earlier, and… Also affects rh-mysql56-mysql
- CVE-2016-0503 Unspecified vulnerability in Oracle MySQL 5.6.27 and earlier and 5.7.9 allows remote… Also affects rh-mysql56-mysql
- CVE-2015-4870 Unspecified vulnerability in Oracle MySQL Server 5.5.45 and earlier, and 5.6.26 and… Also affects rh-mysql56-mysql
- CVE-2015-2582 Unspecified vulnerability in Oracle MySQL Server 5.5.43 and earlier and 5.6.24 and… Also affects rh-mysql56-mysql
- CVE-2025-21555 Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Also affects mysql-5.5