CVE-2024-21508 mysql2 Remote Code Execution (RCE) via the readCodeFor function
CriticalCVSS 9.8
EPSS 2.6%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| mysql2 | < 3.9.4 | 3.9.4 | Fixed |
| npm mysql2(npm) | < 3.9.4 | 3.9.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm mysql2(npm) | < 3.9.4 | 3.9.4 |
| mysql2 | < 3.9.4 | 3.9.4 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- blog.slonser.info
- github.com
- github.com
- security.snyk.io
- github.com
- github.com product