SumatraPDF
CVE-2026-107802
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft text with injected CLI flags
-
DeliveryVictim selects or pastes text in SumatraPDF
-
ExploitUser invokes AI translate action
-
ExecutionFlags injected into agentic CLI command line
-
ImpactOverride model/approval/sandbox settings for attacker intent
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires that one of the agentic CLI backends - Grok, Claude Code, or Codex - is installed and selected as the translation backend, since the vulnerable BuildGrokTranslateCmdLineTemp(), BuildClaudeTranslateCmdLineTemp(), and BuildCodexTranslateCmdLineTemp() functions only build a child command line when such a backend is used. The attacker must get crafted text containing flag tokens into the user's selection or clipboard, and the victim must actively invoke the translate/AI-chat action on that text (UI:A). Limiting factors: the attack is local (AV:L), depends on this non-default AI feature being configured, and requires victim interaction - so default SumatraPDF installations without an agentic CLI backend are not exploitable. |
| Impact | The input provides a CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H) scoring 7.1 (High), but the real-world priority is lower than the base score suggests. Three signals constrain it: AV:L means the attack is local (the malicious text must be selected or pasted into SumatraPDF on the victim's machine), UI:A means the victim must actively invoke the translate action, and AT:P encodes a hard precondition - one of the agentic CLI backends (Grok, Claude Code, or Codex) must be installed and configured. No EPSS score, KEV listing, or POC is present in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation. This is a legitimate argument-injection flaw (CWE-88) with high technical impact if the preconditions are met, but it is a targeted, interaction-and-configuration-dependent issue rather than a widely exploitable remote vulnerability. Note the PR:N claim: the vector marks it unauthenticated, yet exploitation depends entirely on a non-default AI feature being enabled and used - defenders should treat the gating condition, not the privilege metric, as the real barrier. |
| Exploit ScenarioDerived | An attacker crafts document text (or a copyable string) containing extra command-line flags; the victim selects or pastes it into SumatraPDF and triggers the AI translate feature while an agentic CLI backend such as Claude Code, Codex, or Grok is installed. Because the text is embedded in the child-process command line using incomplete quote-only escaping, the injected tokens are parsed as additional flags - overriding the model, working directory, or approval/sandbox settings of the backend. No public exploit code is identified at time of analysis, though the fixing commit makes the injection mechanics clear. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Argument injection in the AI translation feature of SumatraPDF 3.6.1 and earlier allows text placed in a document selection or clipboard to be interpreted as command-line flags when an agentic CLI backend (Grok, Claude Code, or Codex) is configured as the translation provider. Because the vulnerable code builds the child process command line with quote-only escaping, attacker-controlled text can smuggle in flags that alter the model, working directory, approval mode, or sandbox settings used by the launched CLI. Exploitation is local and requires the user to actively invoke the translate/AI-chat action on the crafted text, and only affects installations where one of those agentic CLI backends is installed and selected; no public exploit code was identified at time of analysis, and the issue is not in CISA KEV.
RemediationAI
No vendor-released patched version was identified at time of analysis, so upgrading alone is not currently an option; the advisory at https://github.com/sumatrapdfreader/sumatrapdf/security/advisories/GHSA-xvxg-cwmx-hr7j states no fixed version is available. An upstream fix exists in commit 6b88a751ab34a28bafca3bdd635aaa2f4c1e06b6, which passes raw user text through the new QuoteCmdLineArgTemp() helper instead of the previous quote-only escaping; users should track SumatraPDF releases/CI builds that include this commit, or apply the patch and rebuild from source. Until a patched build is available, the most effective compensating control is to stop using the AI translation/AI-chat feature with agentic CLI backends: remove or do not configure the Grok, Claude Code, or Codex CLI paths in SumatraPDF settings, with the trade-off that the translation feature becomes unavailable. If the feature must remain enabled, treat selected text and clipboard contents as untrusted input - never run the translate action on text from untrusted documents or copied from untrusted sources - and review the agentic CLI invocation, since any injected flags execute with the user's own privileges (local, user-interaction required), which limits but does not eliminate impact. Note that a naive " escaping fix in downstream forks would be insufficient; only proper Windows argv quoting (as in the upstream commit) resolves the root cause.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is src/SelectionTranslate.cpp in SumatraPDF, which constructs Windows command lines for spawning external agentic CLI tools via CreateProcessW. Three builder functions - BuildGrokTranslateCmdLineTemp(), BuildClaudeTranslateCmdLineTemp(), and BuildCodexTranslateCmdLineTemp() - embedded user-controlled selection or clipboard text into a quoted argument after a naive replacement of quote characters, which is insufficient for Windows command-line semantics. Windows child processes (including the Grok, Claude Code, and Codex CLIs) parse their command line using CommandLineToArgvW-style rules, where backslash/quote sequences and argument boundaries can be manipulated so that injected tokens such as --model, --cwd/-C, approval flags, or sandbox-bypass flags (-s / --skip-git-repo-check) are treated as separate argv elements rather than literal text. This is the classic CWE-88 argument injection (improper neutralization of argument delimiters) class. The upstream fix changes the data flow so that raw user input is carried in AIChatCmdArgs and every element is wrapped by a dedicated QuoteCmdLineArgTemp() helper (see the commit touching AIChatCommon.h, AIChatPanel.cpp, ClaudeCode.cpp, CodexBuild.cpp, and GrokBuild.cpp), replacing ad-hoc " escaping with correct Windows quoting. The affected product family is tracked as cpe:2.3:a:sumatrapdfreader:sumatrapdf, and the practical blast radius is limited to the non-default AI chat/translation path when an external agentic CLI is present.
Know when Sumatrapdf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local text handling (AV:L); AC:H because a specific agentic CLI backend must be installed; UI:R since the victim must invoke translate; PR:N as no app privileges are needed; high C/I/A from flag injection enabling sandbox/approval override.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
CWE-88 (Improper Neutralization of Argument Delimiters in a Command).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SumatraPDF 3.6.1 and earlier, when configured with an external AI CLI backend, contains an unpatched argument-injection issue that can let crafted document text influence the options passed to the AI tool. The exposure is limited to users who actively invoke the AI translation/AI-chat feature and who have Grok, Claude Code, or Codex configured, but affected endpoints could have intended sandbox or approval safeguards bypassed; no public exploit identified at time of analysis. Leadership should prioritize discovery and mitigation for those configurations because the vulnerability is rated HIGH and no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Disable or remove the AI translation/agentic CLI integration in SumatraPDF 3.6.1 and earlier; do not configure Grok, Claude Code, or Codex as translation providers; instruct users not to invoke translate/AI-chat on untrusted selections or clipboard content; restrict or remove agentic CLI backends from endpoints; enforce least privilege and restrictive sandbox/approval settings for any retained CLI backend; monitor for unusual child processes launched by SumatraPDF; consider application allowlisting or replacing SumatraPDF until a fixed version is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in Sumatrapdf
View allSumatraPDF 3.5.2 and earlier on Windows contains an untrusted search path vulnerability in the Advanced Options feature
SumatraPDF 3.5.2 and earlier on Windows allows arbitrary code execution when a user opens a PDF and selects "Show in fol
SumatraPDF versions 3.5.0 through 3.5.2 fail to validate TLS certificates during software updates and execute installers
A null pointer dereference vulnerability was discovered in SumatraPDF 3.5.2 during the processing of a crafted .djvu fil
Heap-based buffer overflow in SumatraPDF before 2.1 allows remote attackers to execute arbitrary code via a crafted PDF
Heap-based buffer overflow in SumatraPDF before 2.1 allows remote attackers to execute arbitrary code via a crafted PDF
SumatraPDF versions 3.5.2 and earlier are vulnerable to a heap buffer over-read in the MOBI file parser due to incomplet
SumatraPDF on Windows is vulnerable to a denial-of-service attack through a maliciously crafted Mobi file that triggers
A buffer overflow in SumatraPDF Reader v3.4.6 allows attackers to cause a Denial of Service (DoS) via a crafted text fil
Local code execution in SumatraPDF 3.6.1 and earlier on Windows is possible when a user opens an attacker-supplied docum
TLS hostname validation is disabled in SumatraPDF 3.6.1 and earlier because HttpGet() unconditionally sets INTERNET_FLAG
Parsing a malformed PDF in SumatraPDF 3.6.1 can crash the reader through a signed integer overflow in the PageLabels han
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB