{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21511","published":"2024-04-23T05:15:48.963000Z","last_modified":"2026-06-17T07:09:38.807000Z","status":"Deferred","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"report@snyk.io","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["mysql2"],"products":["mysql2/mysql2"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"epss":{"score":0.01407,"percentile":0.72839,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-4rch-2fh8-94vw","ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":[{"introduced":"0","fixed":"3.9.7"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-21511/","html_en":"/en/cve/CVE-2024-21511/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21511","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21511"},"untrusted":{"vendor_name":"mysql2","product_name":"mysql2","desc_en":"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.","affected":[{"untrusted_vendor":"mysql2","untrusted_product":"mysql2","versions":[]}],"references":[{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/pull/2608","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","tags":[]}]}}