Description
easy-pdf-merge 0.1.0 through 0.2.6 contains an OS command injection vulnerability that allows attackers to execute commands by injecting shell metacharacters into source paths, destination path, or maxHeap option. Attackers can supply file names or options containing double quotes, semicolons, $() or backticks, which child_process.exec() runs through a shell with the Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| karuppiah7890 | easy-pdf-merge | 0.1.0 – ≤ 0.2.6 | — |
References
- GitHub Pull Request #28 issue-tracking patch
- GitHub Pull Request #45 issue-tracking patch
- Vulnerable code in PDFMerger.js technical-description
- https://github.com/karuppiah7890/easy-pdf-merge product
- VulnCheck Advisory: easy-pdf-merge 0.1.0 through 0.2.6 OS Command Injection via merge function third-party-advisory