CVE-2024-21509
Sidorares Mysql2 vulnerability
Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.
Affected products
Mysql2. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sidorares Mysql2 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/4a964a3910a4b8de008696c554ab1b492e9b4691 · Patch
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084 · Exploit
- blog.slonser.info/posts/mysql2-attacker-configuration/ · Exploit
- github.com/sidorares/node-mysql2/pull/2574 · Exploit
- github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers
- github.com/sidorares/node-mysql2/releases/tag/v3.9.4
- nvd.nist.gov/vuln/detail/CVE-2024-21509
- blog.slonser.info/posts/mysql2-attacker-configuration
- nvd.nist.gov/vuln/detail/CVE-2024-21509
- cve.org/CVERecord?id=CVE-2024-21509
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.