{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21511","id":"CVE-2024-21511","title":"MySQL2 for Node Arbitrary Code Injection","description":"Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.","descriptionLong":"Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.","published":"2024-04-23T05:00:00.602Z","updated":"2026-10-28T02:31:02.471169020Z","reserved":"2023-12-22T12:33:20.120Z","status":"Deferred","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"critical","source":"snyk"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"critical","source":"snyk"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["mysql2"],"affectedProducts":[{"vendor":"n/a","product":"mysql2","defaultStatus":null,"versions":[{"version":"0","lessThan":"3.9.7","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.7"],"fixed":["3.9.7"],"advisory":"GHSA-4rch-2fh8-94vw"}],"cwes":["CWE-94"],"aliases":["GHSA-4rch-2fh8-94vw"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","tags":["x_transferred","web"]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","tags":["x_transferred","web"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2608","tags":["x_transferred","fix","web"]},{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","tags":["x_transferred","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21511.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21511","tags":["advisory"]},{"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":"total"},"epss":0.01034,"epssPercentile":0.64643,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21511","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21511","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21511","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4rch-2fh8-94vw","ok":true,"note":"GHSA-4rch-2fh8-94vw"},{"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-21511","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}