7.0
HIGH
CVE-2016-6664
Oracle MySQL Local Privilege Escalation Vulnerability
Description

mysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server before 5.5.51-38.2, 5.6.x before 5.6.32-78-1, and 5.7.x before 5.7.14-8; and Percona XtraDB Cluster before 5.5.41-37.0, 5.6.x before 5.6.32-25.17, and 5.7.x before 5.7.14-26.17, when using file-based logging, allows local users with access to the mysql account to gain root privileges via a symlink attack on error logs and possibly other files.

INFO

Published Date :

Dec. 13, 2016, 9:59 p.m.

Last Modified :

Jan. 24, 2023, 4:09 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.0
Public PoC/Exploit Available at Github

CVE-2016-6664 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2016-6664 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Percona xtradb_cluster
2 Percona percona_server
1 Oracle mysql
1 Mariadb mariadb

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Lua Python

Updated: 8 months, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : March 10, 2022, 10:55 a.m. This repo has been linked 29 different CVEs too.

红队作战中比较常遇到的一些重点系统漏洞整理。

redteam security hacking

Updated: 2 months, 1 week ago
2459 stars 438 fork 438 watcher
Born at : Nov. 21, 2020, 9:42 a.m. This repo has been linked 37 different CVEs too.

None

Python

Updated: 2 months, 2 weeks ago
16 stars 4 fork 4 watcher
Born at : Sept. 3, 2020, 10:31 a.m. This repo has been linked 107 different CVEs too.

None

Shell

Updated: 8 years ago
0 stars 0 fork 0 watcher
Born at : Nov. 10, 2016, 7:57 p.m. This repo has been linked 4 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-6664 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-6664 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Jan. 24, 2023

    Action Type Old Value New Value
    Removed CPE Configuration OR *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (including) 5.5.51 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.6.0 up to (including) 5.6.32 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.7.0 up to (including) 5.7.14
    Removed CPE Configuration OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (excluding) 5.5.54 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.0.0 up to (excluding) 10.0.29 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.1.0 up to (excluding) 10.1.21
    Removed CPE Configuration OR *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.51-38.2 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-78.1 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-8
    Removed CPE Configuration OR *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.41-37.0 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-25.17 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-26.17
    Added CPE Configuration OR *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (including) 5.5.51 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.6.0 up to (including) 5.6.32 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.7.0 up to (including) 5.7.14
    Added CPE Configuration OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (excluding) 5.5.54 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.0.0 up to (excluding) 10.0.29 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.1.0 up to (excluding) 10.1.21
    Added CPE Configuration OR *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.51-38.2 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-78.1 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-8
    Added CPE Configuration OR *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.41-37.0 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-25.17 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-26.17
  • Reanalysis by [email protected]

    Jul. 01, 2022

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions up to (excluding) 10.0.29 OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (excluding) 5.5.54 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.0.0 up to (excluding) 10.0.29 *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions from (including) 10.1.0 up to (excluding) 10.1.21
  • Reanalysis by [email protected]

    Nov. 09, 2020

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed CPE Configuration OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* versions up to (excluding) 10.0.29
  • Modified Analysis by [email protected]

    Mar. 05, 2019

    Action Type Old Value New Value
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:2192 No Types Assigned https://access.redhat.com/errata/RHSA-2017:2192 Third Party Advisory
    Changed Reference Type http://www.debian.org/security/2017/dsa-3770 No Types Assigned http://www.debian.org/security/2017/dsa-3770 Third Party Advisory
    Changed Reference Type https://security.gentoo.org/glsa/201702-18 No Types Assigned https://security.gentoo.org/glsa/201702-18 Third Party Advisory
    Changed Reference Type http://rhn.redhat.com/errata/RHSA-2016-2749.html No Types Assigned http://rhn.redhat.com/errata/RHSA-2016-2749.html Third Party Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0574 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0574 Third Party Advisory
    Changed Reference Type http://rhn.redhat.com/errata/RHSA-2016-2130.html No Types Assigned http://rhn.redhat.com/errata/RHSA-2016-2130.html Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/archive/1/539695/100/0/threaded No Types Assigned http://www.securityfocus.com/archive/1/539695/100/0/threaded Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:0279 No Types Assigned https://access.redhat.com/errata/RHSA-2018:0279 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions up to (including) 5.5.51 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions up to (including) 5.6.32 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions up to (including) 5.7.14 OR *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (including) 5.5.51 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.6.0 up to (including) 5.6.32 *cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:* versions from (including) 5.7.0 up to (including) 5.7.14
    Changed CPE Configuration OR *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions up to (including) 5.5.51-38.1 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions up to (including) 5.6.32-78.0 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions up to (including) 5.7.14-7 OR *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.51-38.2 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-78.1 *cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-8
    Changed CPE Configuration OR *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions up to (including) 5.5.41-25.11.1 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions up to (including) 5.6.30-25.16.3 *cpe:2.3:a:percona:xtradb_cluster:*:rc1-26.16:*:*:*:*:*:* versions up to (including) 5.7.12-5 OR *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.5.41-37.0 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.6 up to (excluding) 5.6.32-25.17 *cpe:2.3:a:percona:xtradb_cluster:*:*:*:*:*:*:*:* versions from (including) 5.7 up to (excluding) 5.7.14-26.17
  • CVE Modified by [email protected]

    Oct. 09, 2018

    Action Type Old Value New Value
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/539695/100/0/threaded [No Types Assigned]
    Added Reference http://www.securityfocus.com/archive/1/539695/100/0/threaded [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 23, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0574 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 08, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0279 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:2192 [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2749.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2130.html [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 04, 2017

    Action Type Old Value New Value
    Added Reference http://www.debian.org/security/2017/dsa-3770 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 01, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201702-18 [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 24, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/archive/1/archive/1/539695/100/0/threaded [No Types Assigned]
  • Initial Analysis by [email protected]

    Dec. 19, 2016

    Action Type Old Value New Value
    Added CVSS V2 (AV:L/AC:M/Au:N/C:C/I:C/A:C)
    Added CVSS V3 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://seclists.org/fulldisclosure/2016/Nov/4 No Types Assigned http://seclists.org/fulldisclosure/2016/Nov/4 Third Party Advisory, Mailing List
    Changed Reference Type http://www.securityfocus.com/bid/93612 No Types Assigned http://www.securityfocus.com/bid/93612 Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html No Types Assigned http://packetstormsecurity.com/files/139491/MySQL-MariaDB-PerconaDB-Root-Privilege-Escalation.html Third Party Advisory, VDB Entry, Exploit
    Changed Reference Type https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ No Types Assigned https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ Vendor Advisory
    Changed Reference Type http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html No Types Assigned http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html Third Party Advisory, Exploit
    Changed Reference Type http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html No Types Assigned http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html Vendor Advisory, Patch
    Changed Reference Type https://www.exploit-db.com/exploits/40679/ No Types Assigned https://www.exploit-db.com/exploits/40679/ Third Party Advisory, VDB Entry, Exploit
    Added CWE CWE-59
    Added CPE Configuration OR *cpe:2.3:a:oracle:mysql:5.5.51:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:oracle:mysql:5.6.32:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:oracle:mysql:5.7.14:*:*:*:*:*:*:* (and previous)
    Added CPE Configuration OR *cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:a:percona:percona_server:5.5.51-38.1:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:percona:percona_server:5.6.32-78.0:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:percona:percona_server:5.7.14-7:*:*:*:*:*:*:* (and previous)
    Added CPE Configuration OR *cpe:2.3:a:percona:xtradb_cluster:5.5.41-25.11.1:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:percona:xtradb_cluster:5.6.30-25.16.3:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:percona:xtradb_cluster:5.7.12-5:rc1-26.16:*:*:*:*:*:* (and previous)
  • CVE Modified by [email protected]

    Dec. 15, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/93612 [No Types Assigned]
    Added Reference http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-6664 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-6664 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

11.76 }} 0.40%

score

0.94420

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability