{"id":"EUVD-2024-1092","enisaUuid":"1faabdb5-845c-397e-8cd7-b1755b03416d","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.","datePublished":"Apr 23, 2024, 5:00:00 AM","dateUpdated":"Aug 1, 2024, 10:20:40 PM","baseScore":9.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","references":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.7\nhttps://github.com/sidorares/node-mysql2/pull/2608\nhttps://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713\n","aliases":"CVE-2024-21511\nGHSA-4rch-2fh8-94vw\n","assigner":"snyk","epss":1.03,"enisaIdProduct":[{"id":"b8b82267-f8a9-3710-9923-31efbe42e2cf","product":{"name":"mysql2","vendor":{"name":"n/a"}},"product_version":"0 \u003c3.9.7"}],"enisaIdVendor":[{"id":"e6bad3a7-2f40-3995-a423-2df3c4ec0c0c","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"1e750519-ff1d-3f34-be91-8293498812b2","vulnerability":{"id":"GHSA-4rch-2fh8-94vw","description":"MySQL2 for Node Arbitrary Code Injection","datePublished":"Apr 23, 2024, 6:30:47 AM","dateUpdated":"Apr 23, 2024, 8:50:56 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2024-21511\nhttps://github.com/sidorares/node-mysql2/pull/2608\nhttps://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713\nhttps://github.com/sidorares/node-mysql2\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.7\nhttps://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046\n","enisa_id":"EUVD-2024-1092\n","aliases":"CVE-2024-21511\nGHSA-4rch-2fh8-94vw\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:36:39 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"730a3a8a-8de9-35a0-878f-da9deae4d34c","vulnerability":{"id":"CVE-2024-21511","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.","datePublished":"Apr 23, 2024, 5:00:00 AM","dateUpdated":"Aug 1, 2024, 10:20:40 PM","status":"PUBLISHED","baseScore":9.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","references":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.7\nhttps://github.com/sidorares/node-mysql2/pull/2608\nhttps://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713\n","enisa_id":"EUVD-2024-1092\n","assigner":"snyk","epss":1.03,"dataProcessed":"Nov 15, 2026, 1:37:25 AM","vulnerabilityProduct":[{"id":"5116298c-def2-3629-b7b4-a66625ec9595","product":{"name":"mysql2","vendor":{"name":"n/a"}},"product_version":"0 \u003c3.9.7"}],"vulnerabilityVendor":[{"id":"4e9694ee-d95a-3f24-a733-74bec54f54c7","vendor":{"name":"n/a"}}]}}],"enisaIdAdvisory":[]}