CVE-2021-23352
Madge vulnerable to command injection
EPSS 0.63%
描述
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. ### PoC ```js const madge = require('madge'); madge('..', {graphVizPath: "touch HELLO;"}) .then((res) => res.svg()) .then((writtenImagePath) => { console.log('Image written to ' + writtenImagePath); }); ```
如何修補 CVE-2021-23352
要修補 CVE-2021-23352,請將受影響套件升級到下列已修補版本。
- npm/madge—升級至 4.0.1 或更新版本
CVE-2021-23352 正在被利用嗎?
低 — EPSS 為 0.6%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 4.0.1