CVE-2021-2389: MySQL memcached Plugin Integer Underflow Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of MySQL. Authentication is not required to exploit this vulnerability. The specific flaw exists within the processing of Append and Prepend commands in the memcached plugin. The issue results from the lack of proper validation of user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the service account.
Other sources
Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Supported versions that are affected are 5.7.34 and prior and 8.0.25 and prior. Difficult to exploit vulnerability allows unauthenticated 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/security-alerts/cpujul2021.html#AppendixMSQL
— Red Hat
Vulnerability in the MySQL Server product of Oracle MySQL (component: InnoDB). Supported versions that are affected are 5.7.34 and prior and 8.0.25 and prior. Difficult to exploit vulnerability allows unauthenticated 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.1 Base Score 5.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-2389?
CVE-2021-2389 is classified as a difficult-to-exploit vulnerability that allows unauthenticated network access.
How do I fix CVE-2021-2389?
To resolve CVE-2021-2389, upgrade MySQL Server to version 5.7.35 or 8.0.26, or update MariaDB to version 10.6.4, 10.5.12, 10.4.21, 10.3.31, or 10.2.40.
Which MySQL versions are affected by CVE-2021-2389?
CVE-2021-2389 affects MySQL Server versions 5.7.34 and prior, as well as 8.0.25 and prior.
What types of network access could exploit CVE-2021-2389?
CVE-2021-2389 can potentially be exploited via multiple network protocols within unauthorized access scenarios.
Are there any specific configurations that mitigate CVE-2021-2389?
Mitigation efforts for CVE-2021-2389 primarily involve updating to the recommended versions of MySQL and MariaDB.