Critical severity9.8NVD Advisory· Published Apr 11, 2024· Updated Apr 15, 2026
CVE-2024-21508
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mysql2npm | < 3.9.4 | 3.9.4 |
Affected products
5- osv-coords5 versionspkg:apk/chainguard/sqlpadpkg:apk/chainguard/sqlpad-compatpkg:apk/wolfi/sqlpadpkg:apk/wolfi/sqlpad-compatpkg:npm/mysql2
< 7.4.1-r4+ 4 more
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 3.9.4
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-fpw7-j2hg-69v5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21508ghsaADVISORY
- blog.slonser.info/posts/mysql2-attacker-configurationghsaWEB
- github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21nvdWEB
- github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805nvdWEB
- github.com/sidorares/node-mysql2/pull/2572nvdWEB
- github.com/sidorares/node-mysql2/releases/tag/v3.9.4nvdWEB
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085nvdWEB
- blog.slonser.info/posts/mysql2-attacker-configuration/nvd
News mentions
0No linked articles in our index yet.