{"id":"CVE-2024-21507","details":"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.","aliases":["GHSA-mqr2-w7wj-jjgr"],"modified":"2026-08-12T03:51:25.802228907Z","published":"2024-04-10T05:00:01.727Z","related":["CGA-3xvg-vrvq-h3mg"],"database_specific":{"cna_assigner":"snyk","cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21507.json"},"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21507.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21507"},{"type":"FIX","url":"https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818"},{"type":"FIX","url":"https://github.com/sidorares/node-mysql2/pull/2424"},{"type":"ARTICLE","url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sidorares/node-mysql2","events":[{"introduced":"0"},{"fixed":"f813a655db1089de1a05184bf7591b81a1605666"},{"fixed":"0d54b0ca6498c823098426038162ef10df02c818"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.9.3"}]}}],"versions":["v3.9.2","v3.9.1","v3.9.0","v3.8.0","v3.7.1","v3.7.0","v3.6.5","v3.6.4","v3.6.3","v3.6.2","v3.6.1","v3.6.0","v3.5.2","v3.5.1","v3.5.0","v3.4.5","v3.4.4","v3.4.3","v3.4.2","v3.4.1","v3.4.0","v3.3.5","v3.3.4","v3.3.3","v3.3.2","v3.3.1","v3.3.0","v3.2.4","v3.2.3","v3.2.2","v3.2.1","v3.2.0","v3.1.2","v3.1.1","v3.1.0","v3.0.1","v3.0.0","v3.0.0-rc.1","v2.3.3","v2.3.3-rc.0","v2.3.2","v2.3.1","v2.3.0","v2.2.5","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.0","v1.6.5","v2.0.2","v2.0.1","v2.0.0","v2.0.0-alpha1","v1.6.4","v1.6.3","v1.6.2","v1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.4.2","v1.4.1","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.3.0","v1.2.0","v1.1.2","v1.1.1","v1.1.0","v1.0.0","v1.0.0-rc.12","v1.0.0-rc.11","v1.0.0-rc.10","v1.0.0-rc.9","v1.0.0-rc.8","v1.0.0-rc.7","v1.0.0-rc.6","v1.0.0-rc.5","v1.0.0-rc.4","v1.0.0-rc.3","v1.0.0-rc.2","v0.15.8","v0.15.7","v0.15.6","v0.15.5","v0.15.4","v0.15.3","v0.15.2","v0.15.1","v0.15.0","v0.14.1","v0.14.0","v0.13.0","v0.12.5","v0.12.4","v0.12.3","v0.12.2","v0.12.1","v0.12.0","v0.11.7","v0.11.6","v0.11.5","v0.9.2","v0.8.20","v0.8.19","v0.8.18","v0.8.17","v0.8.16","v0.8.15","v0.8.14","v0.8.13","v0.8.11"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21507.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P"}]}