CVE-2024-21512: mysql2 - Prototype Pollution
- Cve: CVE-2024-21512
- Name: mysql2 - Prototype Pollution
- Description: Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.
- Impact: Attackers can modify object prototypes, potentially leading to remote code execution or denial of service.
- Remediation: Update to version 3.9.8 or later.
- Vulnerability type: prototype_pollution
- Vulnerability impact: data_tampering, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- Epss score: 0.03139
- Epss percentile: 0.88137
- Assignee: [email protected]
- Published at: 2024-05-29T05:16:08Z
- Age in days: 909
- Modified at: 2026-06-17T07:09:38Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-21512
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mysql2:mysql2 | < 3.9.8 | no | adp_cpes | /v1/products/mysql2/mysql2 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sidorares/node-mysql2 | commit, fix, package, pull | yes | /v1/repositories/sidorares/node-mysql2 |
Index
- Repositories: 15
- Repositories high signal: 10
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts