GitHub Advisoryadvisory · npm
GHSA-4rch-2fh8-94vw MySQL2 for Node Arbitrary Code Injection
CRITICAL
Official page ↗
- Aliases
- CVE-2024-21511
- Ecosystem
- npm
- Packages
- mysql2
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2024-04-23
Affected packages
• npm mysql2: < 3.9.7 → fixed in 3.9.7
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.
Related
Alias · CVE (1)
- CVE-2024-21511 Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21511 advisory
- https://github.com/sidorares/node-mysql2/pull/2608 web
- https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713 web
- https://github.com/sidorares/node-mysql2 package
- https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7 web
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046 web