CVE-2018-2703: Medium severity ORACLE MySQL vulnerability

Published Jan 13, 2018
·
Updated

Last updated 18 August 2025

Other sources

The MySQL's sha256password authentication plugin uses SHA256 crypt password hashing algorithm as defined in:

https://www.akkadia.org/drepper/SHA-crypt.txt

to hash user passwords for storing. This algorithm makes it possible to adjust how expensive it is to compute password hash by adjusting the number of "rounds" of hashing. The number of rounds is stored as part of a password hash. The algorithm specification also defines the minimum and maximum number of rounds that can be used. It was previously identified that the maximum number is rather high and causes hash computation to take excessive amount of time:

https://sourceware.org/bugzilla/showbug.cgi?id=20616

However, this problem is only relevant if user can set their password in a system using SHA256 crypt by directly providing a malicious hash, and does not affect use case where users can only provide plain text passwords with hashing done by the system.

In MySQL 5.6, users with SQL access can set their password by directly providing password hash using: SET PASSWORD = '<hash>'; In MySQL 5.7, the <hash> string is considered to be a plain text password and is hashed again by the MySQL server. Refer to the 'SET PASSWORD' syntax description in the MySQL 5.6 and 5.7 documentation:

https://dev.mysql.com/doc/refman/5.6/en/set-password.html https://dev.mysql.com/doc/refman/5.7/en/set-password.html

Therefore in MySQL 5.6, a user with SQL access can set a password hash with many rounds for their account. Any subsequent attempt to authenticate to that account will cause MySQL server to use an excessive amount of CPU.

Red Hat

Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server : Security : Privileges). Supported versions that are affected are 5.6.38 and prior and 5.7.20 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.0 Base Score 6.5 (Availability impacts). CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Launchpad

Affected Software

6 affected componentsFixes available
redhat/mysql<5.6.39
5.6.39
redhat/mysql<5.7.21
5.7.21
debian/mysql-5.5
debian/mysql-5.7
ORACLE MySQL>=5.6.0<=5.6.38
ORACLE MySQL>=5.7.0<=5.7.20

Event History

Jan 18, 2018
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
DescriptionWeakness
Data Sourced
via NVD·02:29 AM
RemedyDescriptionSeverityAffected Software
Aug 9, 2024
Data Sourced
via Launchpad·04:34 AM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·07:31 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-2703?

CVE-2018-2703 is considered a moderate severity vulnerability due to its impact on password hashing.

2

How do I fix CVE-2018-2703?

To fix CVE-2018-2703, upgrade MySQL to version 5.6.39 or 5.7.21 or later releases.

3

Which versions of MySQL are affected by CVE-2018-2703?

CVE-2018-2703 affects MySQL versions before 5.6.39 and 5.7.21, including MySQL 5.5 and certain versions of MySQL 5.7.

4

What type of vulnerability is CVE-2018-2703?

CVE-2018-2703 is a vulnerability related to weak password hashing mechanisms in the MySQL sha256_password authentication plugin.

5

Is CVE-2018-2703 applicable to Oracle's MySQL database?

Yes, CVE-2018-2703 is applicable to Oracle's MySQL database in specific vulnerable versions.

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