CVE-2016-6663

HIGH

Oracle MySQL <5.5.52, 5.6.x <5.6.33, 5.7.x <5.7.15, and 8.x <8.0.1 - Privilege Escalation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2016-6663. PoCs published by Dawid Golunski, firebroo.

AI-analyzed exploit summary This exploit leverages a race condition in MySQL/MariaDB/PerconaDB (CVE-2016-6663) to escalate privileges by manipulating table files during a REPAIR TABLE operation, resulting in a SUID shell.

Description

Race condition in Oracle MySQL before 5.5.52, 5.6.x before 5.6.33, 5.7.x before 5.7.15, and 8.x before 8.0.1; MariaDB before 5.5.52, 10.0.x before 10.0.28, and 10.1.x before 10.1.18; 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 allows local users with certain permissions to gain privileges by leveraging use of my_copystat by REPAIR TABLE to repair a MyISAM table.

Exploits (2)

exploitdb WORKING POC
by Dawid Golunski · clocallinux
https://www.exploit-db.com/exploits/40678

This exploit leverages a race condition in MySQL/MariaDB/PerconaDB (CVE-2016-6663) to escalate privileges by manipulating table files during a REPAIR TABLE operation, resulting in a SUID shell.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Complex
Reliability
Racy
Target: MySQL/MariaDB/PerconaDB (versions affected by CVE-2016-6663)
Auth required
Prerequisites: Valid MySQL credentials · Write access to a directory where MySQL can create tables · MySQL server with MyISAM engine support
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 5 stars
by firebroo · poc
https://github.com/firebroo/CVE-2016-6663

This repository contains a functional exploit for CVE-2016-6663, a race condition vulnerability in MySQL/MariaDB/PerconaDB that allows local privilege escalation from the mysql user to root. The exploit leverages a race condition during table repair operations to set SUID bits on a shell binary.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Complex
Reliability
Racy
Target: MySQL/MariaDB/PerconaDB (versions affected by CVE-2016-6663)
Auth required
Prerequisites: Local access to the system · MySQL credentials with sufficient privileges to create/drop tables · MySQL server running as root or with sufficient permissions
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (24)

Core 24
Core References
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2749.html
Issue Tracking, Vendor Advisory x_refsource_confirm
https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-52.html
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2017-0184.html
Mailing List, Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2016/Nov/4
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2131.html
Release Notes, Vendor Advisory x_refsource_confirm
https://mariadb.com/kb/en/mariadb/mariadb-5552-release-notes/
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/40678/
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2130.html
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2927.html
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/10/25/4
Issue Tracking, Vendor Advisory x_refsource_confirm
https://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-33.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/92911
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/93614
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2595.html
Issue Tracking, Vendor Advisory x_refsource_confirm
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html
Release Notes, Vendor Advisory x_refsource_confirm
https://mariadb.com/kb/en/mariadb/mariadb-10118-release-notes/
Issue Tracking, Vendor Advisory x_refsource_confirm
https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-15.html
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2928.html
Release Notes, Vendor Advisory x_refsource_confirm
https://mariadb.com/kb/en/mariadb/mariadb-10028-release-notes/

Scores

CVSS v3 7.0
EPSS 0.0261
EPSS Percentile 86.0%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-362
Status published
Products (5)
mariadb/mariadb 5.5.20 - 5.5.52
oracle/mysql 8.0
oracle/mysql 5.5.0 - 5.5.52
percona/percona_server 5.5 - 5.5.51-38.2
percona/xtradb_cluster 5.5 - 5.5.41-37.0
Published Dec 13, 2016
Tracked Since Feb 18, 2026