{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21507","id":"CVE-2024-21507","title":"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.","descriptionLong":"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.","published":"2024-04-10T05:00:01.727Z","updated":"2026-10-28T02:31:10.072609408Z","reserved":"2023-12-22T12:33:20.119Z","status":"PUBLISHED","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["mysql2"],"affectedProducts":[{"vendor":"n/a","product":"mysql2","defaultStatus":null,"versions":[{"version":"0","lessThan":"3.9.3","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.3"],"fixed":["3.9.3"],"advisory":"GHSA-mqr2-w7wj-jjgr"}],"cwes":["CWE-20"],"aliases":["GHSA-mqr2-w7wj-jjgr"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300","tags":["x_transferred","web"]},{"url":"https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818","tags":["x_transferred","fix","web"]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":["x_transferred","article"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2424","tags":["x_transferred","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21507.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21507","tags":["advisory"]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration","tags":["web"]},{"url":"https://github.com/sidorares/node-mysql2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00744,"epssPercentile":0.55679,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21507","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21507","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21507","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mqr2-w7wj-jjgr","ok":true,"note":"GHSA-mqr2-w7wj-jjgr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-21507","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}