{"id":"EUVD-2024-1197","enisaUuid":"cf79b2ab-37fc-365c-9833-e451ce16c481","description":"Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.","datePublished":"Apr 11, 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-6591085\nhttps://blog.slonser.info/posts/mysql2-attacker-configuration/\nhttps://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21\nhttps://github.com/sidorares/node-mysql2/pull/2572\nhttps://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.4\n","aliases":"CVE-2024-21508\nGHSA-fpw7-j2hg-69v5\n","assigner":"snyk","epss":2.55,"enisaIdProduct":[{"id":"63ef8476-7f82-3143-b964-5262b82200a4","product":{"name":"mysql2","vendor":{"name":"n/a"}},"product_version":"0 \u003c3.9.4"}],"enisaIdVendor":[{"id":"fccba56e-673b-3481-badf-fb1b7fd8657b","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"49537074-672b-3ae3-bdd4-670c03cafc3e","vulnerability":{"id":"GHSA-fpw7-j2hg-69v5","description":"mysql2 Remote Code Execution (RCE) via the readCodeFor function","datePublished":"Apr 11, 2024, 6:30:35 AM","dateUpdated":"Apr 12, 2024, 1:50:59 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2024-21508\nhttps://github.com/sidorares/node-mysql2/pull/2572\nhttps://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805\nhttps://blog.slonser.info/posts/mysql2-attacker-configuration\nhttps://github.com/sidorares/node-mysql2\nhttps://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.4\nhttps://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085\n","enisa_id":"EUVD-2024-1197\n","aliases":"GHSA-fpw7-j2hg-69v5\nCVE-2024-21508\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:36:39 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"d5a9c96f-c02f-3cb4-aec7-855f7801f42d","vulnerability":{"id":"CVE-2024-21508","description":"Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.","datePublished":"Apr 11, 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-6591085\nhttps://blog.slonser.info/posts/mysql2-attacker-configuration/\nhttps://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21\nhttps://github.com/sidorares/node-mysql2/pull/2572\nhttps://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805\nhttps://github.com/sidorares/node-mysql2/releases/tag/v3.9.4\n","enisa_id":"EUVD-2024-1197\n","assigner":"snyk","epss":2.55,"dataProcessed":"Nov 15, 2026, 1:37:18 AM","vulnerabilityProduct":[{"id":"3c24c496-e63f-319f-b932-882583b97fae","product":{"name":"mysql2","vendor":{"name":"n/a"}},"product_version":"0 \u003c3.9.4"}],"vulnerabilityVendor":[{"id":"6375b3c6-80a8-30cb-bc93-3f413d633ff3","vendor":{"name":"n/a"}}]}}],"enisaIdAdvisory":[]}