Intel

AIKIDO-2024-10020

mysql2 is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2024-21508 Published Apr 10, 2024

85

High Risk

This Affects:

JSmysql2
0.0.1 - 3.9.3
Fixed in 3.9.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via the readCodeFor function, due to improper validation of the supportBigNumbers and bigNumberStrings values. This vulnerability is exploitable when using user-defined database connections.

Who does this affect?

You are affected if you are using a version of this package = 3.9.3.

Background info

mysql2 is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 3.9.3.

How to fix this

Upgrade the mysql2 library to the patch version.