CVE-2024-21507
MySQL2 Cache Poisoning Vulnerability
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.
INFO
Published Date :
April 10, 2024, 5:15 a.m.
Last Modified :
June 17, 2025, 6:23 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.5
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21507
.
URL | Resource |
---|---|
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 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21507
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-21507
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 17, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:* versions up to (excluding) 3.9.3 Added Reference Type CVE: https://blog.slonser.info/posts/mysql2-attacker-configuration/ Types: Exploit, Permissions Required Added Reference Type Snyk: https://blog.slonser.info/posts/mysql2-attacker-configuration/ Types: Exploit, Permissions Required Added Reference Type CVE: https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 Types: Patch Added Reference Type Snyk: https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 Types: Patch Added Reference Type CVE: https://github.com/sidorares/node-mysql2/pull/2424 Types: Exploit, Issue Tracking Added Reference Type Snyk: https://github.com/sidorares/node-mysql2/pull/2424 Types: Exploit, Issue Tracking Added Reference Type CVE: https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 Types: Exploit, Third Party Advisory Added Reference Type Snyk: https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 Types: Exploit, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://blog.slonser.info/posts/mysql2-attacker-configuration/ Added Reference https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 Added Reference https://github.com/sidorares/node-mysql2/pull/2424 Added Reference https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 01, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-20 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Apr. 10, 2024
Action Type Old Value New Value Added 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. Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 [No types assigned] Added Reference Snyk https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 [No types assigned] Added Reference Snyk https://blog.slonser.info/posts/mysql2-attacker-configuration/ [No types assigned] Added Reference Snyk https://github.com/sidorares/node-mysql2/pull/2424 [No types assigned] Added CWE Snyk CWE-20 Added CVSS V3.1 Snyk AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21507
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21507
weaknesses.