CVEvulnerability
CVE-2024-21507
5.3 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-04-10
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-20
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.
Affected configurations
• sidorares mysql2 (< 3.9.3)
Related
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://blog.slonser.info/posts/mysql2-attacker-configuration/ Exploit, Permissions Required
- https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 Patch
- https://github.com/sidorares/node-mysql2/pull/2424 Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 Exploit, Third Party Advisory
- https://blog.slonser.info/posts/mysql2-attacker-configuration/ Exploit, Permissions Required
- https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 Patch
- https://github.com/sidorares/node-mysql2/pull/2424 Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 Exploit, Third Party Advisory