NetSight
critical9.8

CVE-2024-21511

MySQL2 for Node Arbitrary Code Injection

Impact

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 packages

EcosystemPackageAffectedFixed in
npmmysql2< 3.9.73.9.7

Affected products

ProductAffected versions
Package Mysql2
before 3.9.7

Versions were read from the advisory text. No structured product data has been published for this record yet.

Weakness classification

References