# CVE-2024-21511

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.

- CVSS: 9.8 CRITICAL
- EPSS: unknown
- In CISA KEV: no
- Published: 2024-04-23

Sources: NVD, OSV, CISA, FIRST. Last checked 20 Nov 2026.
