CVE-2024-21508
JSON

9.8critical

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Severity
9.8critical CVSS:3.1 by snyk
Exploit likelihood
2.55% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-fpw7-j2hg-69v5

Description

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

Affected

Product or packageVersionsReported by
mysql2before 3.9.4CVE List
mysql2 mysql2before 3.9.4CVE List
mysql2 (npm)before 3.9.4GitHub 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 none, automatable yes, technical impact total.

What each source says

CVE List

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

GitHub Advisory Database

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

NVD (es)

Las versiones del paquete mysql2 anteriores a la 3.9.4 son vulnerables a la ejecución remota de código (RCE) a través de la función readCodeFor debido a una validación incorrecta de los valores supportBigNumbers y bigNumberStrings.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21508 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-fpw7-j2hg-69v5 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21508 changed 2026-06-17Public domain