01 Record
CVE-2024-21512
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.
HighPUBLISHEDCNA: snyk
CNA base score8.2 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
02 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.
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 3.13% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 87.5% of scored records. A rank, not a probability.
- NVD base score
- 8.2 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- NVD analysis status
- Deferred. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2024-05-29 05:00Z2 YR AGO
- Last updated
- 2024-08-01 22:20Z2 YR AGO
- Reserved
- 2023-12-22
- Assigning CNA
- snyk
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.2)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
- Weaknesses
- CWE-1321Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')Variant
- Data version
- 5.1
- Document digest
- 2c16ab9e368d2d323a712c158650a5161d5cced02fd9eb2ba0e78ed37ac810d6
05 Affected products
VendorProductVersionsPlatforms
06 References
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010
- gist.github.comhttps://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a
- github.comhttps://github.com/sidorares/node-mysql2/pull/2702
- github.comhttps://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc