CVE-2024-21511
published critical CVSS 3.1 · 9.8mysql2: Arbitrary Code Injection due to improper sanitization of the timezone parameter
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | mysql2 | 0 to < 3.9.7 (affected · semver) | snyk · cna |
| mysql2 | mysql2 | 0 to < 3.9.7 (affected · semver)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-94 Arbitrary Code Injection
References
4Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 34f3fb89b94439a447a489ecc86bd52c1efd51b29088e553b3398169676e8b67
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record