CVE-2026-110647

Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names

Published Oct 14, 2026 CVSS 4.0 · 8.5 High EPSS 1.0% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Turnpress through version 0.4.2 contains a command injection flaw that allows an attacker to execute arbitrary shell commands on the host system by supplying a .docx file with a specially crafted filename. The vulnerability arises from the convertDocxToHtml function invoking pandoc via execa with the shell option enabled, which causes shell metacharacters in the file path to be interpreted by the victim’s account during conversion. This weakness is classified as CWE-78 and can lead to full remote code execution in the context of the running application.

Affected Systems

The affected product is Turnpress, a document conversion utility maintained by vendor jinghaihan. The vulnerability exists in all releases up to and including version 0.4.2; no later versions are mentioned in the advisory.

Risk and Exploitability

The CVSS v3.1 score for this vulnerability is 8.5, indicating high severity. The EPSS score is approximately 1.04%, indicating a low but non-zero probability of exploitation, while the high Base score suggests exploitation is feasible in a realistic environment. The vulnerability is not listed in CISA’s KEV catalog, meaning it is not known to be actively exploited at the time of this analysis. Based on the description, the likely attack vector is an attacker controlling the file name of a .docx file that is processed by the Turnpress conversion routine, and it is inferred that a web‑application context where users can upload documents would allow such control. Because the crafted filename is processed by a shell, a local attacker or anyone who can influence the conversion input has the potential to execute arbitrary commands with the privileges of the application process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade to a newer Turnpress release where the execa shell option has been removed.
  • If an upgrade is not immediately possible, sanitize incoming .docx file names by stripping shell metacharacters or renaming files before they are passed to convertDocxToHtml.
  • Disable or restrict the convertDocxToHtml functionality for unauthenticated users to limit the opportunity for exploitation.

Generated by OpenCVE AI on October 15, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Jinghaihan
Jinghaihan turnpress
Vendors & Products Jinghaihan
Jinghaihan turnpress
Type Values Removed Values Added
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.
Title Turnpress through 0.4.2 OS Command Injection via Crafted .docx File Names
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 14, 2026, 6:20 PM
Reserved
Oct 14, 2026, 1:07 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 15, 2026, 2:47 PM