Remote Code Execution Vulnerability in mysql2 Prior to 3.9.4
CVE-2024-21508
What is CVE-2024-21508?
The MySQL2 package, commonly used in Node.js applications for interacting with MySQL databases, contains a vulnerability that allows Remote Code Execution (RCE). This issue arises from inadequate validation of the input parameters 'supportBigNumbers' and 'bigNumberStrings' within the 'readCodeFor' function. When these parameters are not properly validated, it opens up a potential attack vector, allowing unauthorized users to execute arbitrary code on the server where MySQL2 is implemented. Users and developers are urged to upgrade to version 3.9.4 or later to mitigate this threat and enhance their security posture.
Affected Version(s)
mysql2 0 < 3.9.4
News Articles

CVE-2024-21508 : MYSQL2 UP TO 3.9.3 READCODEFOR BIGNUMBERSTRINGS CODE INJECTION - Cloud WAF
CVE-2024-21508 : Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.
References
EPSS Score
9% chance of being exploited in the next 30 days.
CVSS V3.1
Timeline
- đź“°
First article discovered by prophaze.com
Vulnerability published
Vulnerability Reserved