9.8critical
MySQL2 for Node Arbitrary Code Injection
- Severity
- 9.8critical CVSS:3.1 by snyk
- Exploit likelihood
- 1.03% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-4rch-2fh8-94vw
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mysql2 | before 3.9.7 | CVE List |
| mysql2 mysql2 | before 3.9.7 | CVE List |
| mysql2 (npm) | before 3.9.7 | GitHub Advisory Database |
All scores
| snyk | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Las versiones del paquete mysql2 anteriores a la 3.9.7 son vulnerables a la inyección de código arbitrario debido a una sanitización inadecuada del parámetro de zona horaria en la función readCodeFor al llamar a una función de fecha/hora nativa del servidor MySQL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21511 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4rch-2fh8-94vw changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-21511 changed 2026-06-17 | Public domain |