REDHAT-BUG-1414429: Medium severity MySQL mysqld_safe vulnerability

Published Jan 18, 2017
·
Updated

It was discovered that the mysqldsafe could read ledir value - which specifies the directory where mysqld is stored - from configuration file. This could allow a user with privileges to write to some mysql configuration file - either mysql OS user, or any local OS user able to write to the config via some other way, e.g. by exploiting CVE-2016-6662 - to escalate their privileges to root if mysqldsafe was run with root privileges.

This problem is related to this change applied as part of the CVE-2016-6662 fix:

https://github.com/mysql/mysql-server/commit/684a165f28b3718160a3e4c5ebd18a465d85e97c#diff-144aa2f11374843c969d96b7b84247eaR211

It introduced restriction that mysqld and mysqldversion options can only be specified on the command line and can not be defined in a configuration file. However, such restriction was trivial to bypass while ledir was not restricted in a similar way.

Restriction for ledir was added in MySQL versions 5.5.54, 5.6.35, and 5.7.17. The following related entry can be found in the release notes:

The --ledir option now is accepted only on the command line, not in option files.

http://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-54.html http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-35.html http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-17.html

MySQL upstream commit:

https://github.com/mysql/mysql-server/commit/53230ba274a37fa13d65e802c6ef3766cd0c6d91#diff-144aa2f11374843c969d96b7b84247ea

The CVE was made public via Oracle CPU January 2017:

http://www.oracle.com/technetwork/security-advisory/cpujan2017-2881727.html#AppendixMSQL

Affected Software

1 affected component
MySQL mysqld_safe

Event History

Jan 18, 2017
Data Sourced
via Red Hat·01:30 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-1414429?

The severity of REDHAT-BUG-1414429 is considered to be high due to the potential for unauthorized access to MySQL configuration files.

2

How do I fix REDHAT-BUG-1414429?

To fix REDHAT-BUG-1414429, you should update your MySQL Server to a version that is not affected by this vulnerability.

3

Which versions of MySQL are affected by REDHAT-BUG-1414429?

MySQL versions 5.5.54, 5.6.35, and 5.7.17 are affected by REDHAT-BUG-1414429.

4

Who is impacted by REDHAT-BUG-1414429?

Users with privileges to write to MySQL configuration files are impacted by REDHAT-BUG-1414429.

5

What is the impact of REDHAT-BUG-1414429?

The impact of REDHAT-BUG-1414429 is that an attacker could potentially read sensitive system information through the mysqld_safe configuration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
REDHAT-BUG-1414429 - Medium severity MySQL mysqld_safe vulnerability - SecAlerts