{"id":"CVE-2024-21508","aliases":["GHSA-fpw7-j2hg-69v5"],"url":"https://o3.security/vulnerability/CVE-2024-21508","summary":"mysql2 Remote Code Execution (RCE) via the readCodeFor function","details":"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.","published":"2024-04-11T05:00:00.748Z","modified":"2026-07-15T01:49:01.825091484Z","cvss":{"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/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"mysql2","fixedVersion":"3.9.4"}],"fix":{"url":"https://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805","label":"sidorares/node-mysql2@74abf9e"},"references":[{"type":"WEB","url":"https://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21"},{"type":"WEB","url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21508.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21508"},{"type":"FIX","url":"https://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805"},{"type":"FIX","url":"https://github.com/sidorares/node-mysql2/pull/2572"},{"type":"ARTICLE","url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:01.825091484Z"}}