Skip to content

CVE-2024-21511 MySQL2 for Node Arbitrary Code Injection

CriticalCVSS 9.8 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
MySQL

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.

Upgrade path

2 packages: 2 fixed.

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

Affected products

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

References