SecurityContext

CVE-2024-21509: mysql2 - Prototype Pollution

  • Cve: CVE-2024-21509
  • Name: mysql2 - Prototype Pollution
  • Description: 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.
  • Impact: Attackers can manipulate object prototypes, potentially leading to remote code execution or data tampering.
  • Remediation: Update to version 3.9.4 or later.
  • Vulnerability type: prototype_pollution
  • Vulnerability impact: remote_code_execution, data_tampering
  • Requirement type: user_interaction
  • Requirements: Attacker needs to pass malicious input
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
  • Epss score: 0.00955
  • Epss percentile: 0.62109
  • Assignee: [email protected]
  • Published at: 2024-04-10T05:15:48Z
  • Age in days: 958
  • Modified at: 2026-06-17T07:09:38Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-21509
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-1321Improperly Controlled Modification of Object Prototype Attributes

Public exploits

Same in every row:

  • Source: nvd
  • Added date: 2024-04-10
Url
https://blog.slonser.info/posts/mysql2-attacker-configuration/
https://github.com/sidorares/node-mysql2/pull/2574
https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691Patch
https://blog.slonser.info/posts/mysql2-attacker-configuration/Exploit, Permissions Required
https://github.com/sidorares/node-mysql2/pull/2574Exploit, Issue Tracking
https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084Exploit, Third Party Advisory
https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
sidorares:mysql2< 3.9.4nonvd/v1/products/sidorares/mysql2

Projects

RepositoryLink kindsIndexedUrl
sidorares/node-mysql2commit, fix, package, pull, releasesyes/v1/repositories/sidorares/node-mysql2

Index

  • Repositories: 12
  • Repositories high signal: 7
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2024-04-10
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts