Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vworld4u | office-converter | ≤ 1.0.2 | — |
References
- GitHub Security Advisory (GHSA-9p64-h5q4-phpm) third-party-advisory vendor-advisory
- https://github.com/vworld4u/office-converter/pull/9 patch issue-tracking
- https://github.com/vworld4u/office-converter/blob/b1ea855d0001dc7a5d66343698634dbc06b72c2d/index.js#L19-L20 technical-description
- VulnCheck Advisory: office-converter through 1.0.2 OS Command Injection via fileName in generatePdf third-party-advisory