Skip to content

CVE-2024-21507 mysql2 cache poisoning vulnerability

MediumCVSS 5.3 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
mysqljs mysql2 < 3.9.3 3.9.3 Fixed
npm mysql2(npm) < 3.9.3 3.9.3 Fixed
sidorares mysql2 < 3.9.3 3.9.3 Fixed

Affected products

ProductAffected versionsFixed in
npm mysql2(npm) < 3.9.3 3.9.3
mysqljs mysql2 < 3.9.3 3.9.3
sidorares mysql2 < 3.9.3 3.9.3

References