CVE-2024-21511
JSON

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 packageVersionsReported by
mysql2before 3.9.7CVE List
mysql2 mysql2before 3.9.7CVE List
mysql2 (npm)before 3.9.7GitHub Advisory Database

All scores

snyk9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

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

SourceRecordLicence
CVE ListCVE-2024-21511 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-4rch-2fh8-94vw changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21511 changed 2026-06-17Public domain