Description
SumatraPDF is a multi-format reader for Windows. In 3.6.1 and earlier, src/SelectionTranslate.cpp embeds selected or pasted translation text in quoted Windows command lines using incomplete quote-only escaping. The affected BuildGrokTranslateCmdLineTemp(), BuildClaudeTranslateCmdLineTemp(), and BuildCodexTranslateCmdLineTemp() functions can allow attacker-controlled text to inject model, working-directory, approval, or sandbox-bypass flags when the corresponding agentic CLI backend is installed and used. No broader impact is claimed beyond the advisory-supported conditions. No fixed version is available as of this review.
Published: 2026-10-08
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Command Injection
Action: Assess Impact
AI Analysis

Impact

SumatraPDF, a Windows PDF viewer, suffered from incomplete quote‑only escaping in its SelectionTranslate.cpp component. The bug allows attacker‑controlled text from a selection or paste to be embedded verbatim into Windows command lines that invoke external AI translation backends. Because the command line is not properly escaped, an adversary can inject additional CLI flags such as –model, –working‑directory, –approval, or –sandbox‑bypass. This leads to command‑line injection, enabling arbitrary command execution or privilege escalation through the agentic backend. The weakness is a classic example of CWE‑88: Improper Escaping of Command–Line Parameters.

Affected Systems

Any installation of SumatraPDF version 3.6.1 or earlier, regardless of build, is vulnerable. The functions BuildGrokTranslateCmdLineTemp, BuildClaudeTranslateCmdLineTemp, and BuildCodexTranslateCmdLineTemp are the affected entry points. When an agentic CLI backend that accepts the injected parameters is present and executed, the vulnerability manifests. The problem exists on the Windows platform only.

Risk and Exploitability

The CVSS score of 7.1 places the flaw in the high‑severity range, indicating a substantial risk to confidentiality, integrity, and availability. The EPSS score is not available, but the lack of a publicly known exploit and the requirement for a specific user action (selecting or copying text) suggest a moderate exploitation probability. The issue is not listed in the CISA KEV catalog, so no active zero‑day evidence is reported. Attackers would need to supply malicious text within the application's interface; once the templated command line is invoked, the injected flags could allow configuration changes or arbitrary code execution depending on the capabilities of the backend.

Generated by OpenCVE AI on October 8, 2026 at 23:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor's next release that fixes SelectionTranslate.cpp once it becomes available.
  • Disable or remove the agentic CLI backend components (Grok, Claude, Codex) if they are not required, thereby eliminating the command‑line injection vector.
  • Implement input sanitization by rejecting or escaping quotation marks before passing user‑supplied text to the backend command line, following CWE‑88 mitigations.

Generated by OpenCVE AI on October 8, 2026 at 23:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 10 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 08 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Sumatrapdfreader
Sumatrapdfreader sumatrapdf
Vendors & Products Sumatrapdfreader
Sumatrapdfreader sumatrapdf

Thu, 08 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Description SumatraPDF is a multi-format reader for Windows. In 3.6.1 and earlier, src/SelectionTranslate.cpp embeds selected or pasted translation text in quoted Windows command lines using incomplete quote-only escaping. The affected BuildGrokTranslateCmdLineTemp(), BuildClaudeTranslateCmdLineTemp(), and BuildCodexTranslateCmdLineTemp() functions can allow attacker-controlled text to inject model, working-directory, approval, or sandbox-bypass flags when the corresponding agentic CLI backend is installed and used. No broader impact is claimed beyond the advisory-supported conditions. No fixed version is available as of this review.
Title SumatraPDF — Windows command-line argument injection in AI selection-translate
Weaknesses CWE-88
References
Metrics cvssV4_0

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


Subscriptions

Sumatrapdfreader Sumatrapdf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-09T19:09:00.523Z

Reserved: 2026-10-08T21:23:59.819Z

Link: CVE-2026-107802

cve-icon Vulnrichment

Updated: 2026-10-09T19:08:30.948Z

cve-icon NVD

Status : Deferred

Published: 2026-10-08T23:17:00.320

Modified: 2026-10-09T20:17:09.627

Link: CVE-2026-107802

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-08T23:30:12Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')