{"id":"CVE-2024-21507","published":"2024-04-10T05:00:01Z","modified":"2024-09-18T14:46:37Z","title":"Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00848,"percentile":0.55524,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818","tags":[]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/pull/2424","tags":[]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":11.1},{"name":"CVSS severity","points":4.55}]},"affectedVersions":[{"vendor":"n/a","product":"mysql2","versions":["< 3.9.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-25T19:03:05.282698Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mysql2","vulnerableRanges":["<3.9.3"],"patched":["3.9.3"],"from":["GHSA-mqr2-w7wj-jjgr"],"provenance":"source"}],"summary":{"text":"The flaw is improper input validation in the keyFromFields function of the mysql2 Node.js package, affecting versions before 3.9.3, which allows cache poisoning. An attacker who can supply a crafted key containing a colon (:) character can inject into it, and the attack requires no privileges or user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:20Z"},"euvd":{"id":"EUVD-2024-1251","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21507","published":"2024-04-10","fixed":"3.9.3","kev":false},{"cve":"CVE-2024-21508","published":"2024-04-11","fixed":"3.9.4","kev":false,"link":{"from":"CVE-2024-21507","to":"CVE-2024-21508","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mysql2","fromFixed":"3.9.3","toFixed":"3.9.4","daysApart":1}]}},{"cve":"CVE-2024-21509","published":"2024-04-10","fixed":"3.9.4","kev":false,"link":{"from":"CVE-2024-21507","to":"CVE-2024-21509","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mysql2","fromFixed":"3.9.3","toFixed":"3.9.4","daysApart":0}]}},{"cve":"CVE-2024-21511","published":"2024-04-23","fixed":"3.9.7","kev":false}],"package":"npm:mysql2"}}