SecurityContext

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

IdName
CWE-1321Improperly Controlled Modification of Object Prototype Attributes

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a
https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc
https://github.com/sidorares/node-mysql2/pull/2702
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010
https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580

Products

ProductAffectedPlatform boundSourcesUrl
mysql2:mysql2< 3.9.8noadp_cpes/v1/products/mysql2/mysql2

Projects

RepositoryLink kindsIndexedUrl
sidorares/node-mysql2commit, fix, package, pullyes/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