NetSight
critical9.8

CVE-2024-21508

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Impact

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 packages

EcosystemPackageAffectedFixed in
npmmysql2< 3.9.43.9.4

Affected products

ProductAffected versions
Package Mysql2
before 3.9.4

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

Weakness classification

References