Skip to main content

SumatraPDF CVE-2026-107802

HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-10-08 GitHub_M
7.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft text with injected CLI flags
  2. Delivery
    Victim selects or pastes text in SumatraPDF
  3. Exploit
    User invokes AI translate action
  4. Execution
    Flags injected into agentic CLI command line
  5. Impact
    Override 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (GitHub_M) PRIMARY 7.1 HIGH
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
vuln.today AI 7.0 HIGH

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular free Windows PDF reader, but not standard enterprise deployment
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:sumatrapdfreader:sumatrapdf:*:*:*:*:*:*:*:*
CVE-2026-23512 HIGH POC
8.6 Jan 14

SumatraPDF 3.5.2 and earlier on Windows contains an untrusted search path vulnerability in the Advanced Options feature

CVE-2026-25880 HIGH POC
7.8 Feb 09

SumatraPDF 3.5.2 and earlier on Windows allows arbitrary code execution when a user opens a PDF and selects "Show in fol

CVE-2026-25961 HIGH POC
7.5 Feb 09

SumatraPDF versions 3.5.0 through 3.5.2 fail to validate TLS certificates during software updates and execute installers

CVE-2025-57248 HIGH POC
7.3 Sep 15

A null pointer dereference vulnerability was discovered in SumatraPDF 3.5.2 during the processing of a crafted .djvu fil

CVE-2012-4896 CRITICAL
9.3 Oct 05

Heap-based buffer overflow in SumatraPDF before 2.1 allows remote attackers to execute arbitrary code via a crafted PDF

CVE-2012-4895 CRITICAL
9.3 Oct 05

Heap-based buffer overflow in SumatraPDF before 2.1 allows remote attackers to execute arbitrary code via a crafted PDF

CVE-2026-25920 MEDIUM POC
5.5 Feb 09

SumatraPDF versions 3.5.2 and earlier are vulnerable to a heap buffer over-read in the MOBI file parser due to incomplet

CVE-2026-23951 MEDIUM POC
5.5 Jan 22

SumatraPDF on Windows is vulnerable to a denial-of-service attack through a maliciously crafted Mobi file that triggers

CVE-2023-33802 MEDIUM POC
5.5 Jul 26

A buffer overflow in SumatraPDF Reader v3.4.6 allows attackers to cause a Denial of Service (DoS) via a crafted text fil

CVE-2026-107732 HIGH
8.4 Oct 08

Local code execution in SumatraPDF 3.6.1 and earlier on Windows is possible when a user opens an attacker-supplied docum

CVE-2026-115758 HIGH
8.2 Nov 04

TLS hostname validation is disabled in SumatraPDF 3.6.1 and earlier because HttpGet() unconditionally sets INTERNET_FLAG

CVE-2026-88361 HIGH
7.5 Sep 24

Parsing a malformed PDF in SumatraPDF 3.6.1 can crash the reader through a signed integer overflow in the PageLabels han

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy