← Back to search

CVE-2026-110647

7.8 HIGHpublic exploit available

Published 2026-10-14 · Updated 2026-10-15

AI risk analysis

Summary
Turnpress v0.4.2 and earlier contains an OS command injection (CWE-78) in its .docx-to-HTML conversion flow: the convertDocxToHtml function passes user-controlled filenames to pandoc via execa with shell:true, allowing attackers to inject shell metacharacters through maliciously named files to execute arbitrary commands with the application's privileges.
Exploitability
Exploitation requires the attacker to upload or otherwise cause the application to process a .docx file with a specially crafted filename containing shell metacharacters, and the victim must trigger the convert or create operation (user interaction is required per CVSS UI:R).
Blast radius
Successful exploitation grants full read, write, and execute privileges on the host running Turnpress, enabling data theft, lateral movement, or persistent compromise depending on the application's environment and permissions.
Detection
Monitor application logs for calls to the convertDocxToHtml function with unusually long or shell-metacharacter-containing filenames (e.g., containing ;, |, $(, `), especially when followed by subprocess execution events or unexpected process creation in system logs.
Prioritized remediation
Upgrade to Turnpress version 0.4.3 or later, which removes shell:true and sanitizes or escapes the file path before invoking pandoc; if upgrading is not immediately possible, disable the .docx conversion feature entirely or restrict file upload and conversion access to trusted users only.
os-command-injectionrcefile-uploadpandoc

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.