Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names
jinghaihan turnpress
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jinghaihan turnpress |
| No fix yet |
Original description
Turnpress through 0.4.2 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying .docx files with crafted names. The convertDocxToHtml function in src/converter.ts invokes pandoc through execa with shell:true, so shell metacharacters in the --docx path run with the victim's privileges during convert or create.
From the CVE record · VulnCheck