Skip to content

CVE-2024-21508 mysql2 Remote Code Execution (RCE) via the readCodeFor function

CriticalCVSS 9.8 EPSS 2.6%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
mysql2 < 3.9.4 3.9.4 Fixed
npm mysql2(npm) < 3.9.4 3.9.4 Fixed

Affected products

ProductAffected versionsFixed in
npm mysql2(npm) < 3.9.4 3.9.4
mysql2 < 3.9.4 3.9.4

References