All reports
Critical

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Affected versions

Affected versions
< 3.9.4
Fixed version
3.9.4

Exploitation

CVE-2024-21508

Probability of exploitation in the next 30 days: 2.55%

FIRST EPSS · 2026-11-23

Description

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.

Links