8.2
HIGH
CVE-2024-21512
MySQL2 Prototype Pollution Vulnerability
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.

INFO

Published Date :

May 29, 2024, 5:16 a.m.

Last Modified :

Nov. 21, 2024, 8:54 a.m.

Remotely Exploitable :

Yes !

Impact Score :

4.2

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2024-21512 has a 20 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-21512 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Sidorares mysql2

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

备份的漏洞库,3月开始我们来维护

Updated: 2 days, 20 hours ago
2 stars 0 fork 0 watcher
Born at : June 30, 2025, 9:14 a.m. This repo has been linked 216 different CVEs too.

None

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : June 15, 2025, 2:32 a.m. This repo has been linked 216 different CVEs too.

None

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : May 30, 2025, 2:59 a.m. This repo has been linked 213 different CVEs too.

None

HTML

Updated: 2 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : May 6, 2025, 2:20 a.m. This repo has been linked 201 different CVEs too.

wy876

Python

Updated: 1 week, 4 days ago
8 stars 2 fork 2 watcher
Born at : April 11, 2025, 4:25 a.m. This repo has been linked 209 different CVEs too.

wy876 POC | wy876的poc仓库已删库,该项目为其仓库镜像

Updated: 1 day ago
343 stars 195 fork 195 watcher
Born at : March 7, 2025, 10:17 a.m. This repo has been linked 201 different CVEs too.

收集整理漏洞EXP/POC,大部分漏洞来源网络,目前收集整理了1100多个poc/exp,长期更新。

Updated: 1 month, 4 weeks ago
1 stars 0 fork 0 watcher
Born at : March 7, 2025, 2:48 a.m. This repo has been linked 142 different CVEs too.

备份的漏洞库,3月开始我们来维护

Updated: 1 hour, 9 minutes ago
1321 stars 375 fork 375 watcher
Born at : March 4, 2025, 2:54 p.m. This repo has been linked 216 different CVEs too.

2023HW漏洞整理,收集整理漏洞EXp/POC,大部分漏洞来源网络,目前收集整理了300多个poc/exp,长期更新。

Updated: 2 months, 2 weeks ago
1 stars 1 fork 1 watcher
Born at : March 3, 2025, 6:09 a.m. This repo has been linked 177 different CVEs too.

漏洞文库 wiki.wy876.cn

HTML

Updated: 6 days, 4 hours ago
75 stars 55 fork 55 watcher
Born at : Feb. 26, 2025, 9:46 a.m. This repo has been linked 201 different CVEs too.

None

Updated: 5 days, 16 hours ago
4 stars 0 fork 0 watcher
Born at : Dec. 19, 2024, 1:46 a.m. This repo has been linked 123 different CVEs too.

None

Updated: 1 month, 2 weeks ago
1 stars 1 fork 1 watcher
Born at : Sept. 9, 2024, 1:28 a.m. This repo has been linked 128 different CVEs too.

None

HTML

Updated: 6 months ago
3 stars 2 fork 2 watcher
Born at : Sept. 4, 2024, 9:24 a.m. This repo has been linked 128 different CVEs too.

None

HTML

Updated: 1 week, 4 days ago
11 stars 1 fork 1 watcher
Born at : Aug. 2, 2024, 6:07 a.m. This repo has been linked 123 different CVEs too.

收集整理漏洞EXp/POC,漏洞来源网络

Updated: 4 months, 2 weeks ago
0 stars 1 fork 1 watcher
Born at : June 20, 2024, 3:26 a.m. This repo has been linked 159 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-21512 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-21512 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a
    Added Reference https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc
    Added Reference https://github.com/sidorares/node-mysql2/pull/2702
    Added Reference https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010
    Added Reference https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580
  • CVE Modified by [email protected]

    Jun. 06, 2024

    Action Type Old Value New Value
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010 [No types assigned]
  • CVE Received by [email protected]

    May. 29, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580 [No types assigned]
    Added Reference Snyk https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a [No types assigned]
    Added Reference Snyk https://github.com/sidorares/node-mysql2/pull/2702 [No types assigned]
    Added Reference Snyk https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc [No types assigned]
    Added CWE Snyk CWE-1321
    Added CVSS V3.1 Snyk AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-21512 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jul. 15, 2025 9:31