{"id":"CVE-2021-23352","published":"2021-03-09T18:30:23Z","modified":"2024-09-16T23:11:05Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:F/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02057,"percentile":0.81769,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875","tags":["x_refsource_MISC"]},{"url":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27","tags":["x_refsource_MISC"]},{"url":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332","tags":["x_refsource_MISC"]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":16.35},{"name":"CVSS severity","points":6.02}]},"affectedVersions":[{"vendor":"n/a","product":"madge","versions":[">= unspecified, < 4.0.1"]}],"affected":[{"ecosystem":"npm","package":"madge","vulnerableRanges":["<4.0.1"],"patched":["4.0.1"],"from":["GHSA-753c-phhg-cj29"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the madge npm package, versions before 4.0.1, where the graphVizPath option is passed to childprocess.exec when the .image(), .svg() or .dot() functions run. An attacker who can supply a custom graphVizPath value can have arbitrary commands executed over the network with no authentication or user interaction required, though the conditions depend on whether the application passes that option from untrusted input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:03Z"},"euvd":{"id":"EUVD-2021-0621","exploited":false,"provenance":"source"}}