### [CVE-2024-21511](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21511) ![](https://img.shields.io/static/v1?label=Product&message=mysql2&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=0%3C%203.9.7%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Arbitrary%20Code%20Injection&color=brighgreen) ### 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. ### POC #### Reference - https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046 #### Github - https://github.com/fkie-cad/nvd-json-data-feeds