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.
Metrics
CVSS 3.1 5.3/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | mysql2 | < 3.9.3 |
| mysqljs | mysql2 | < 3.9.3 |
References
- https://blog.slonser.info/posts/mysql2-attacker-configuration/Exploit, Permissions Required
- https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818Patch
- https://github.com/sidorares/node-mysql2/pull/2424Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300Exploit, Third Party Advisory
- https://blog.slonser.info/posts/mysql2-attacker-configuration/Exploit, Permissions Required
- https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818Patch
- https://github.com/sidorares/node-mysql2/pull/2424Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300Exploit, Third Party Advisory
Timeline
- Published
- Apr 10, 2024
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed