{"id":"CVE-2024-21511","sourceIdentifier":"report@snyk.io","published":"2024-04-23T05:15:48.963","lastModified":"2026-06-17T07:09:38.807","vulnStatus":"Deferred","cveTags":[],"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."},{"lang":"es","value":"Las versiones del paquete mysql2 anteriores a la 3.9.7 son vulnerables a la inyección de código arbitrario debido a una sanitización inadecuada del parámetro de zona horaria en la función readCodeFor al llamar a una función de fecha/hora nativa del servidor MySQL."}],"affected":[{"source":"report@snyk.io","affectedData":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","lessThan":"3.9.7","versionType":"semver","status":"affected"}]}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","affectedData":[{"vendor":"mysql2","product":"mysql2","defaultStatus":"unknown","cpes":["cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:*"],"versions":[{"version":"0","lessThan":"3.9.7","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"report@snyk.io","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-04-25T14:55:36.593699Z","id":"CVE-2024-21511","options":[{"exploitation":"poc"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"report@snyk.io","type":"Secondary","description":[{"lang":"en","value":"CWE-94"}]}],"references":[{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","source":"report@snyk.io"},{"url":"https://github.com/sidorares/node-mysql2/pull/2608","source":"report@snyk.io"},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","source":"report@snyk.io"},{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","source":"report@snyk.io"},{"url":"https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/sidorares/node-mysql2/pull/2608","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046","source":"af854a3a-2127-422b-91ae-364da2661108"}]}