CVE-2024-21508: MYSQL2

Critical severity, CVSS 9.8. EPSS: 2.6% chance of exploitation in the next 30 days.

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 products

  • MYSQL2 MYSQL2: before 3.9.4 (fixed in 3.9.4)

Published 2024-04-11. Last modified 2026-06-17.