CVE-2024-21508
mysql2 Remote Code Execution (RCE) via the readCodeFor function
9.8
CRITICAL
CVSS 3.1
EPSS 46.2%
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.
How to fix CVE-2024-21508
To remediate CVE-2024-21508, upgrade the affected package to a fixed version below.
- npm/mysql2—upgrade to 3.9.4 or later
Is CVE-2024-21508 being exploited?
Moderate — EPSS is 46.2%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (1)
- from 0, < 3.9.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |