CVE-2024-21511
Versions of the package mysql2 before 3.9.7 are vulnerable to …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713
- github.com/sidorares/node-mysql2/pull/2608
- github.com/sidorares/node-mysql2/releases/tag/v3.9.7
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046
- nvd.nist.gov/vuln/detail/CVE-2024-21511
- github.com/advisories/GHSA-4rch-2fh8-94vw
- nvd.nist.gov/vuln/detail/CVE-2024-21511
- cve.org/CVERecord?id=CVE-2024-21511
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.