# CVE-2020-37282: office-converter through 1.0.2 OS Command Injection via fileName in generatePdf

Source: https://aplosec.si/cve/CVE-2020-37282/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2020-37282

Critical 9.3 · Reproduced · No fix listed · CWE-78 · npm

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

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

In plain words: this type of bug lets someone run their own commands on the server (command injection). No fixed release is listed yet.

## Summary

CVE-2020-37282 affects office-converter (npm) <= 1.0.2: Command injection via fileName in generatePdf (CWE-78). No fixed release is listed. CVSS 4.0 base score 9.3 (Critical), assigned by VulnCheck. Published 2026-10-14 by VulnCheck. Credit: Zachariah Mithani.

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

- [GitHub advisoryhttps://github.com/advisories/GHSA-9p64-h5q4-phpm](https://github.com/advisories/GHSA-9p64-h5q4-phpm)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/office-converter-through-1.0.2-os-command-injection-via-filename-in-generatepdf](https://www.vulncheck.com/advisories/office-converter-through-1.0.2-os-command-injection-via-filename-in-generatepdf)

- [Fix pull requesthttps://github.com/vworld4u/office-converter/pull/9](https://github.com/vworld4u/office-converter/pull/9)

- [Vulnerable codehttps://github.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20](https://github.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2020-37282](https://www.cve.org/CVERecord?id=CVE-2020-37282)

**Severity:** Critical 9.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2020-37282)

**Package:** office-converter

**Ecosystem:** npm

**Affected:** <= 1.0.2

**Fixed:** None

**Weakness:** CWE-78

**CNA:** VulnCheck

**Credit:** Zachariah Mithani finder
