CVE-2020-37282
CVE-2020-37282 · office-converter through 1.0.2 OS Command Injection via fileName in generatePdf
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.3 · Critical · EPSS 3.0%
- Published
- Updated
Affected products and versions
office-converter
- Versions
- ≥ 0, ≤ 1.0.2: Affected (semver)
No fix published
Original sources
- https://github.com/advisories/GHSA-9p64-h5q4-phpm
- https://github.com/vworld4u/office-converter/pull/9
- https://github.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20
- https://www.vulncheck.com/advisories/office-converter-through-1.0.2-os-command-injection-via-filename-in-generatepdf
- https://nvd.nist.gov/vuln/detail/CVE-2020-37282