{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21508","published":"2024-04-11T05:15:47.263000Z","last_modified":"2026-06-17T07:09:38.450000Z","status":"Deferred","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"report@snyk.io","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["mysql2"],"products":["mysql2/mysql2"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"epss":{"score":0.03457,"percentile":0.89818,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-fpw7-j2hg-69v5","ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":[{"introduced":"0","fixed":"3.9.4"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-21508/","html_en":"/en/cve/CVE-2024-21508/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21508","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21508"},"untrusted":{"vendor_name":"mysql2","product_name":"mysql2","desc_en":"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.","affected":[{"untrusted_vendor":"mysql2","untrusted_product":"mysql2","versions":[]}],"references":[{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/pull/2572","tags":[]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085","tags":[]}]}}