CVE-2026-107802

SumatraPDF — Windows command-line argument injection in AI selection-translate

Published Oct 8, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Sumatrapdfreader
Sumatrapdfreader sumatrapdf
Vendors & Products Sumatrapdfreader
Sumatrapdfreader sumatrapdf
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'}

Weaknesses
  • CWE-88

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 9, 2026, 7:09 PM
Reserved
Oct 8, 2026, 9:23 PM
Status
Deferred
Published
Oct 8, 2026, 11:17 PM
Modified
Oct 9, 2026, 8:17 PM