AploSec / Disclosures / CVE-2020-37282

ReproducedNo fix listedCWE-78npm

office-converter through 1.0.2 OS Command Injection via fileName in generatePdf

CVE-2020-37282 · published 2026-10-14

Summary

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.

Evidence

The exploit was run against the published artifact from the registry, not the repository. It created a marker file; a benign input through the same sink in the same session did not.

Remediation

No fixed release was published at disclosure. Don't pass untrusted file names or strings to the affected functions, or apply the patch from the fix pull request.

References

Package
office-converter
Ecosystem
npm
Weekly downloads
120
Affected
<= 1.0.2
Fixed
None
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithani