cve.bz

CVE-2024-21511

9.8 criticalEPSS 1.0%

Critical (9.8). EPSS 1.0% chance of exploitation in the next 30 days. Fixed in mysql2 3.9.7.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% chance of exploitation in the next 30 days; higher than 63% of CVEs (scores of 2026-10-31)
CWE
CWE-94
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4rch-2fh8-94vwnpmmysql2<3.9.73.9.7

References

Check your stackJSON