Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| jinghaihan / turnpress | affected 0 through 0.4.2 |
CWE
CWE-78
References
- https://github.com/jinghaihan/turnpress/pull/2
- https://github.com/jinghaihan/turnpress/blob/v0.4.2/src/converter.ts#L33-L61
- https://www.vulncheck.com/advisories/turnpress-through-0.4.2-os-command-injection-via-crafted-docx-file-names
ADP enrichment
No English description supplied.
No references supplied.