CVE Catalog

CVE-2020-37282

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

office-converter through 1.0.2 contains an OS command injection vulnerability. Attackers can supply a crafted fileName to generatePdf() or generateHtml(), embedding $(...), backticks, or a closing quote with shell metacharacters in the file name, which is concatenated into an unoconv command run via child_process.exec(), executing commands with Node.js process privileges.

Risk Assessment

An attacker can execute arbitrary commands in the context of the Node.js application, potentially leading to server compromise, data theft, or further privilege escalation.

Recommendation

Update office-converter to a version later than 1.0.2 or validate and sanitize the fileName before passing it to generatePdf() and generateHtml().

Related vulnerabilities

Original NVD description (English source)

office-converter through 1.0.2 contains an OS command injection vulnerability that allows attackers to execute commands by supplying a crafted fileName to generatePdf() or generateHtml(). Attackers can embed $(...), backticks, or a closing quote with shell metacharacters in the file name, which is concatenated into an unoconv command run via child_process.exec(), executing commands with Node.js process privileges.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS