GitHub Advisoryadvisory · npm
GHSA-mqr2-w7wj-jjgr mysql2 cache poisoning vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-21507
- Ecosystem
- npm
- Packages
- mysql2
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- Weaknesses
- CWE-20
- Reviewed
- 2024-04-12
Affected packages
• npm mysql2: < 3.9.3 → fixed in 3.9.3
Description
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.
Related
Alias · CVE (1)
- CVE-2024-21507 Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21507 advisory
- https://github.com/sidorares/node-mysql2/pull/2424 web
- https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818 web
- https://blog.slonser.info/posts/mysql2-attacker-configuration web
- https://github.com/sidorares/node-mysql2 package
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300 web