{"id":"CVE-2024-21511","state":"PUBLISHED","title":"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","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.","publishedAt":"2024-04-23T05:00:00.602Z","updatedAt":"2024-08-01T22:20:40.911Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","source":"snyk"},"assigner":"snyk","products":["n/a mysql2"],"affected":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.7","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","https://github.com/sidorares/node-mysql2/pull/2608","https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21511.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21511","state":"PUBLISHED","datePublished":"2024-04-23T05:00:00.602Z","dateUpdated":"2024-08-01T22:20:40.911Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2023-12-22T12:33:20.120Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.7","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046"},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7"},{"url":"https://github.com/sidorares/node-mysql2/pull/2608"},{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"Arbitrary Code Injection","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2024-05-08T09:07:06.904Z"},"credits":[{"value":"zhaoyudi (Nebulalab)","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mysql2","product":"mysql2","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.9.7","versionType":"semver"}],"cpes":["cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-21511","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2024-04-25T14:55:36.593699Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:38:16.126Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2608","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:20:40.911Z"}}]}}}