CVE-2020-37279
8.1 HIGHpublic exploit availablePublished 2026-10-12 · Updated 2026-10-16
AI risk analysis
- Summary
- easy-pdf-merge versions 0.1.0 through 0.2.6 contain an OS command injection flaw (CWE-78) where untrusted input in source paths, destination paths, or the maxHeap option is passed unsafely to child_process.exec(), allowing attackers to execute arbitrary commands with the Node.js process privileges.
- Exploitability
- Exploitation requires high attacker skill due to the need to craft shell metacharacter payloads (e.g., quotes, semicolons, $(), backticks) that bypass basic escaping and be delivered via input fields accepted by the application; no authentication is required.
- Blast radius
- Successful exploitation grants full control over the Node.js process, enabling data exfiltration, system compromise, or lateral movement within the host environment.
- Detection
- Defenders should monitor Node.js application logs for suspicious command-line arguments containing shell metacharacters (e.g., $(), backticks, semicolons, unescaped quotes) in paths or options passed to child_process.exec(); no reliable network-level indicator is expected.
- Prioritized remediation
- Upgrade to easy-pdf-merge version 0.2.7 or later, which addresses the command injection by sanitizing inputs and avoiding shell execution via child_process.exec().
os-command-injectionnodejsrceinput-validation-failure
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78
Public exploit & PoC references
- https://github.com/karuppiah7890/easy-pdf-merge
- https://github.com/karuppiah7890/easy-pdf-merge/blob/v0.2.6/source/lib/PDFMerger.js#L71-L75
- https://github.com/karuppiah7890/easy-pdf-merge/pull/28
- https://github.com/karuppiah7890/easy-pdf-merge/pull/45
- https://github.com/karuppiah7890/easy-pdf-merge/pull/28
References
- https://github.com/karuppiah7890/easy-pdf-merge
- https://github.com/karuppiah7890/easy-pdf-merge/blob/v0.2.6/source/lib/PDFMerger.js#L71-L75
- https://github.com/karuppiah7890/easy-pdf-merge/pull/28
- https://github.com/karuppiah7890/easy-pdf-merge/pull/45
- https://www.vulncheck.com/advisories/easy-pdf-merge-0.1.0-through-0.2.6-os-command-injection-via-merge-function
- https://github.com/karuppiah7890/easy-pdf-merge/pull/28
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.