Prototype Pollution in Sidorares Mysql2
CVE-2024-21509
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.
Vulnerability class: Prototype Pollution
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
EPSS exploit prediction
EPSS: 0.010 (60.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 60th percentile — 60.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Sidorares Mysql2
- Mysql2 — versions 0
Weakness classification (CWE)
References
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084 (Exploit, Third Party Advisory)
- blog.slonser.info/posts/mysql2-attacker-configuration/ (Permissions Required, Exploit)
- github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/… (Broken Link)
- github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691 (Patch)
- github.com/sidorares/node-mysql2/pull/2574 (Exploit, Issue Tracking)
- github.com/sidorares/node-mysql2/releases/tag/v3.9.4 (Release Notes)
Frequently asked questions
- What is CVE-2024-21509?
- CVE-2024-21509 is a medium-severity vulnerability in Sidorares Mysql2, classified under Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution). CVSS score: 6.5/10. Published 2024-04-10.
- How severe is CVE-2024-21509?
- Medium severity. CVSS v3 base score is 6.5 out of 10.