SecurityContext

CVE-2021-23352: Madge - Command Injection

  • Cve: CVE-2021-23352
  • Name: Madge - Command Injection
  • Description: This affects the package madge before 4.0.1. It is possible to specify a custom Graphviz path via the graphVizPath option parameter which when the .image(), .svg() or .dot() functions are called, is executed by the childprocess.exec function.
  • Impact: Attackers can execute arbitrary commands on the system, potentially leading to remote code execution or system compromise.
  • Remediation: Update to version 4.0.1 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02057
  • Epss percentile: 0.81794
  • Assignee: [email protected]
  • Published at: 2021-03-09T19:15:12Z
  • Age in days: 2086
  • Modified at: 2026-06-17T03:38:36Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23352
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://snyk.io/vuln/SNYK-JS-MADGE-1082875nvd2021-03-09

References

UrlSourceTags
https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332nvdPatch, Third Party Advisory
https://snyk.io/vuln/SNYK-JS-MADGE-1082875nvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
madge_project:madge< 4.0.1nonvd/v1/products/madge_project/madge

Projects

RepositoryLink kindsIndexedUrl
pahen/madgecommit, fixyes/v1/repositories/pahen/madge

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-09
  • 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