CVE-2024-21507
Sidorares Mysql2 vulnerability
Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.
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/0d54b0ca6498c823098426038162ef10df02c818 · Patch
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 · Exploit
- blog.slonser.info/posts/mysql2-attacker-configuration/ · Exploit
- github.com/sidorares/node-mysql2/pull/2424 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-21507
- blog.slonser.info/posts/mysql2-attacker-configuration
- github.com/advisories/GHSA-mqr2-w7wj-jjgr
- nvd.nist.gov/vuln/detail/CVE-2024-21507
- cve.org/CVERecord?id=CVE-2024-21507
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.