BreachSpiderVerified, not vibes

CVE-2016-6664 in Mariadb and 3 more products

High 7.0 Public exploit reported

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

Affects 4 products from 3 vendors. Facts below cite their sources.

CVSS 3.17.0
EPSS3.0%
EPSS percentile88th
FixSee advisory

Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mariadb Mariadb ≥ 5.5.0, < 5.5.54 ≥ 10.0.0, < 10.0.29 ≥ 10.1.0, < 10.1.21
Oracle Mysql ≥ 5.5.0, ≤ 5.5.51 ≥ 5.6.0, ≤ 5.6.32 ≥ 5.7.0, ≤ 5.7.14
Percona Percona Server ≥ 5.5, < 5.5.51-38.2 ≥ 5.6, < 5.6.32-78.1 ≥ 5.7, < 5.7.14-8
Percona Xtradb Cluster ≥ 5.5, < 5.5.41-37.0 ≥ 5.6, < 5.6.32-25.17 ≥ 5.7, < 5.7.14-26.17

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2016-6664
BreachSpider IDBS-2016-GLOBAL-299275-H
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2016-12-13
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-59: Improper Link Resolution Before File Access

Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59

CAPEC-76 Manipulating Web Input to File System Calls via CWE-59

CAPEC-132 Symlink Attack via CWE-59

CAPEC-17 Using Malicious Files via CWE-59

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

{ "executive_summary": "A vulnerability in mysqld_safe allows local users with access to the mysql account to gain root privileges through file-based logging.", "attack_vector_detail": "The vulnerability exists in the mysqld_safe script, which is used to start the MySQL server. An attacker with local access to the mysql account can exploit this vulnerability to escalate their privileges to root by manipulating file-based logging.", "affected_components": [ "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", "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-

Questions

What is CVE-2016-6664?

{ "executive_summary": "A vulnerability in mysqld_safe allows local users with access to the mysql account to gain root privileges through file-based logging.", "attack_vector_detail": "The vulnerability exists in the mysqld_safe script, which is used to start the MySQL server. An attacker with local access to the mysql account can exploit this vulnerability to escalate their privileges to root by manipulating file-based logging.", "affected_components": [ "Oracle MySQL through 5.5.51,

What is the CVSS score for CVE-2016-6664?

CVE-2016-6664 has CVSS 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.0%.

Is CVE-2016-6664 actively exploited?

Public exploit available for CVE-2016-6664. Exploitation risk elevated.

How do I remediate CVE-2016-6664?

Advisory: https://www.percona.com/blog/2016/11/02/percona-responds-to-cve-2016-6663-and-cve-2016-6664/ PSIRT: [email protected]

What systems are affected by CVE-2016-6664?

CVE-2016-6664 affects Mariadb Mariadb; Oracle Mysql; Percona Percona Server, Xtradb Cluster.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mariadb","product":"Mariadb","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.