Quantum Secular Labs / Blog / Advisories

CVE-2016-6662: Oracle Mysql: Code execution

CVE-2016-6662 is rated critical with a CVSS v3.0 base score of 9.8 and affects Oracle Mysql, along with 9 other products in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.

Vulnerability description

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.

Severity breakdown

CVSS v3.0 9.8: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
  • Attack complexity: Low. No special conditions; the attack can be repeated reliably.
  • Privileges required: None. No account or prior access is needed.
  • User interaction: None. No action from any user is needed.
  • Scope: Unchanged. Impact stays within the vulnerable component.
  • Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
  • Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
  • Availability impact: High. Total loss of availability; the component can be shut down.

Affected products

  • Oracle Mysql: from 5.5.0 up to and including 5.5.52; from 5.6.0 up to and including 5.6.33; from 5.7.0 up to and including 5.7.15
  • Percona Server: from 5.5 before 5.5.51-38.1; from 5.6 before 5.6.32-78.0; from 5.7 before 5.7.14-7
  • Mariadb: from 5.5.20 before 5.5.51; from 10.0.0 before 10.0.27; from 10.1.0 before 10.1.17
  • Debian Linux: 8.0
  • Red Hat Openstack: 5.0; 6.0; 7.0; 8; 9
  • Red Hat Enterprise Linux: 7.0
  • Red Hat Enterprise Linux Desktop: 6.0; 7.0
  • Red Hat Enterprise Linux Server: 6.0
  • Red Hat Enterprise Linux Server Aus: 7.3; 7.4; 7.6
  • Red Hat Enterprise Linux Server Eus: 7.3; 7.4; 7.5; 7.6
  • Red Hat Enterprise Linux Server Tus: 7.3; 7.6
  • Red Hat Enterprise Linux Workstation: 6.0; 7.0

References