CVE-2020-37279

easy-pdf-merge 0.1.0 through 0.2.6 OS Command Injection via merge function

Published Oct 12, 2026 CVSS 4.0 · 9.2 Critical EPSS 1.9% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw lies in the merge function of easy‑pdf‑merge, which constructs shell commands by directly concatenating user‑supplied source paths, destination paths, or the maxHeap option and then passes them to child_process.exec(). Because child_process.exec() runs the command through a shell with the privileges of the running Node.js process, an attacker can inject shell metacharacters such as double quotes, semicolons, $() or backticks, thereby executing arbitrary commands. The result is a loss of confidentiality, integrity, and availability on any system where the vulnerable merge function is reachable.

Affected Systems

The affected product is the open‑source easy‑pdf‑merge library authored by karuppiah7890. Versions from 0.1.0 through 0.2.6 contain the vulnerability. Any Node.js application that depends on one of these releases and exposes the merge functionality to untrusted input—whether through a public API, command‑line interface, or internal service—is at risk.

Risk and Exploitability

The CVSS score of 9.2 indicates critical severity. An EPSS score of 1% indicates a low but non‑zero probability that attackers will target this vulnerability, and the vulnerability is not listed in the CISA KEV catalog; however, the lack of a KEV listing does not diminish the risk. Based on the description, the likely attack vector is any interface that accepts source paths, destination paths, or the maxHeap option for the merge operation and is exposed to users who can supply arbitrary input. An attacker who can reach the merge function can craft input containing shell metacharacters, trigger child_process.exec(), and run arbitrary commands with the privileges of the Node.js process. Because this requires no additional authentication or privilege escalation, the potential impact is complete compromise of the affected system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade easy‑pdf‑merge to a version later than 0.2.6, where the merge implementation switches to child_process.execFile or eliminates the shell invocation entirely.
  • If an upgrade is not immediately possible, restrict the merge API to trusted input only—for example, validate file paths against a whitelist and reject any input that contains shell metacharacters such as “”, ‘;’, $(), or backticks.
  • Replace the library’s use of child_process.exec() with a safer alternative such as child_process.spawn or execFile, ensuring that all arguments are validated and no shell is invoked.

Generated by OpenCVE AI on October 13, 2026 at 14:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Karuppiah7890
Karuppiah7890 easy-pdf-merge
Vendors & Products Karuppiah7890
Karuppiah7890 easy-pdf-merge
Type Values Removed Values Added
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.
Title easy-pdf-merge 0.1.0 through 0.2.6 OS Command Injection via merge function
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 5:36 PM
Reserved
Oct 12, 2026, 7:27 PM
Status
Deferred
Published
Oct 12, 2026, 9:17 PM
Modified
Oct 16, 2026, 7:18 PM