01 Record
CVE-2024-21507
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
MediumPUBLISHEDCNA: snyk
CNA base score6.5 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P
02 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
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.74% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 54.3% of scored records. A rank, not a probability.
- NVD base score
- 5.3 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- NVD analysis status
- Analyzed. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2024-04-10 05:00Z2 YR AGO
- Last updated
- 2024-09-18 14:46Z2 YR AGO
- Reserved
- 2023-12-22
- Assigning CNA
- snyk
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 6.5)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P
- Weaknesses
- CWE-20Improper Input ValidationClass
- Data version
- 5.1
- Document digest
- 9077be915ad610b40471140587088cdb4d6c9a25227b43efbd9383d3e7979228
05 Affected products
06 References
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300
- github.comhttps://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818
- blog.slonser.infohttps://blog.slonser.info/posts/mysql2-attacker-configuration/
- github.comhttps://github.com/sidorares/node-mysql2/pull/2424