{"cve":"CVE-2024-21511","nvd":{"published":"2024-04-23T05:15:48.963","modified":"2026-06-17T07:09:38.807","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","https://github.com/sidorares/node-mysql2/pull/2608","https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:08.435428910+00:00"},"epss":{"cve":"CVE-2024-21511","score":0.01034,"percentile":0.63852,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-4rch-2fh8-94vw","url":"https://osv.dev/vulnerability/GHSA-4rch-2fh8-94vw","summary":"MySQL2 for Node Arbitrary Code Injection","modified":"2026-09-10T03:50:11.169102793Z","packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.7"],"fixed":["3.9.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}