CVE-2018-2640: Medium severity Oracle MySQL vulnerability
Last updated 18 August 2025
Other sources
Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Optimizer). Supported versions that are affected are 5.5.58 and prior, 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.
External References:
http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
— Red Hat
Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: Optimizer). Supported versions that are affected are 5.5.58 and prior, 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
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2018-2640?
CVE-2018-2640 is classified as an easily exploitable vulnerability which allows low privileged attackers to potentially gain unauthorized access.
How do I fix CVE-2018-2640?
To fix CVE-2018-2640, upgrade MySQL to versions 5.5.59, 5.6.39, or 5.7.21 or later.
Which MySQL versions are affected by CVE-2018-2640?
The affected MySQL versions are 5.5.58 and prior, 5.6.38 and prior, and 5.7.20 and prior.
Does CVE-2018-2640 affect MariaDB as well?
Yes, CVE-2018-2640 affects certain MariaDB versions including 5.5.59, 10.0.34, 10.1.31, and 10.2.13.
What kinds of systems are vulnerable to CVE-2018-2640?
CVE-2018-2640 can impact systems running vulnerable versions of MySQL and MariaDB, commonly used in various database applications.