---
id: CVE-2020-37282
title: >-
  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()
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
  closi…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T15:16:59.520'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2020-37282'
references:
  - url: 'https://github.com/advisories/GHSA-9p64-h5q4-phpm'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20
    label: disclosure@vulncheck.com
  - url: 'https://github.com/vworld4u/office-converter/pull/9'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/office-converter-through-1.0.2-os-command-injection-via-filename-in-generatepdf
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-14T15:36:13.993Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
