Critical severity9.8NVD Advisory· Published Apr 23, 2024· Updated Apr 15, 2026
CVE-2024-21511
CVE-2024-21511
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mysql2npm | < 3.9.7 | 3.9.7 |
Affected products
5- osv-coords5 versionspkg:apk/chainguard/sqlpadpkg:apk/chainguard/sqlpad-compatpkg:apk/wolfi/sqlpadpkg:apk/wolfi/sqlpad-compatpkg:npm/mysql2
< 7.4.1-r4+ 4 more
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 3.9.7
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-4rch-2fh8-94vwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21511ghsaADVISORY
- github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713nvdWEB
- github.com/sidorares/node-mysql2/pull/2608nvdWEB
- github.com/sidorares/node-mysql2/releases/tag/v3.9.7nvdWEB
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046nvdWEB
News mentions
0No linked articles in our index yet.