CVE-2024-21508
Versions of the package mysql2 before 3.9.4 are vulnerable to …
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.
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
- blog.slonser.info/posts/mysql2-attacker-configuration/
- github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers
- github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805
- github.com/sidorares/node-mysql2/pull/2572
- github.com/sidorares/node-mysql2/releases/tag/v3.9.4
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085
- nvd.nist.gov/vuln/detail/CVE-2024-21508
- blog.slonser.info/posts/mysql2-attacker-configuration
- nvd.nist.gov/vuln/detail/CVE-2024-21508
- cve.org/CVERecord?id=CVE-2024-21508
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.