CVE-2024-21511
MySQL2 for Node Arbitrary Code Injection
9.8
CRITICAL
CVSS 3.1
EPSS 0.17%
Description
Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.
How to fix CVE-2024-21511
To remediate CVE-2024-21511, upgrade the affected package to a fixed version below.
- npm/mysql2—upgrade to 3.9.7 or later
Is CVE-2024-21511 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.9.7
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 |