{"cve":"CVE-2024-21508","nvd":{"published":"2024-04-11T05:15:47.263","modified":"2026-06-17T07:09:38.450","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://blog.slonser.info/posts/mysql2-attacker-configuration/","https://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21","https://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805","https://github.com/sidorares/node-mysql2/pull/2572","https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-21508","score":0.02554,"percentile":0.85058,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fpw7-j2hg-69v5","url":"https://osv.dev/vulnerability/GHSA-fpw7-j2hg-69v5","summary":"mysql2 Remote Code Execution (RCE) via the readCodeFor function","modified":"2026-09-10T03:50:11.212637363Z","packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.4"],"fixed":["3.9.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}