CRITICAL 9.8 npm
MySQL2 for Node Arbitrary Code Injection
GHSA-4rch-2fh8-94vw · CVE-2024-21511
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2024-21511
- WEB https://github.com/sidorares/node-mysql2/pull/2608
- WEB https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713
- PACKAGE https://github.com/sidorares/node-mysql2
- WEB https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7
- WEB https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046
Ready to move
Start Securing
Free, no credit card | First findings in minutes