Oracle MySQL up to 5.5.51/5.6.32/5.7.14 File-based Logging mysqld_safe link following

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.6$0-$5k0.00

Summaryinfo

A vulnerability classified as critical was found in Oracle MySQL up to 5.5.51/5.6.32/5.7.14. This issue affects the function mysqld_safe of the component File-based Logging. The manipulation results in link following. This vulnerability is cataloged as CVE-2016-6664. The attack must be initiated from a local position. Furthermore, there is an exploit available. Upgrading the affected component is advised.

Detailsinfo

A vulnerability was found in Oracle MySQL up to 5.5.51/5.6.32/5.7.14 (Database Software). It has been classified as critical. Affected is the function mysqld_safe of the component File-based Logging. The manipulation with an unknown input leads to a link following vulnerability. CWE is classifying the issue as CWE-59. The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

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.

The bug was discovered 11/15/2016. The weakness was shared 12/13/2016 with Oracle (Website). The advisory is shared for download at legalhackers.com. This vulnerability is traded as CVE-2016-6664 since 08/10/2016. The attack needs to be approached locally. The successful exploitation requires a authentication. Technical details and a public exploit are known.

The exploit is shared for download at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 28 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 96486 (MariaDB 10.0.x < 10.0.29 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Databases and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 20021 (Oracle MySQL Multiple Security Vulnerabilities).

Upgrading eliminates this vulnerability. A possible mitigation has been published 2 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (40678), Tenable (96486) and SecurityFocus (BID 93612†). The entries VDB-4597, VDB-4598, VDB-79101 and VDB-80318 are related to this item. Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

Video

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.0
VulDB Meta Temp Score: 6.6

VulDB Base Score: 7.0
VulDB Temp Score: 6.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.0
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Link following
CWE: CWE-59
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 96486
Nessus Name: MariaDB 10.0.x < 10.0.29 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 703770
OpenVAS Name: Debian Security Advisory DSA 3770-1 (mariadb-10.0 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Timelineinfo

08/10/2016 🔍
10/18/2016 +69 days 🔍
11/15/2016 +28 days 🔍
12/13/2016 +28 days 🔍
12/13/2016 +0 days 🔍
12/14/2016 +1 days 🔍
01/13/2017 +30 days 🔍
01/13/2017 +0 days 🔍
11/25/2024 +2873 days 🔍

Sourcesinfo

Vendor: oracle.com

Advisory: RHSA-2017:2192
Organization: Oracle
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2016-6664 (🔍)
GCVE (CVE): GCVE-0-2016-6664
GCVE (VulDB): GCVE-100-94164

OVAL: 🔍

SecurityFocus: 93612 - Oracle MySQL CVE-2016-6664 Local Security Vulnerability

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 12/14/2016 11:02
Updated: 11/25/2024 16:09
Changes: 12/14/2016 11:02 (78), 07/15/2019 16:49 (12), 10/06/2022 08:10 (3), 10/06/2022 08:11 (1), 11/25/2024 16:09 (16)
Complete: 🔍
Cache ID: 216:66E:103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!