Skip to main content

SumatraPDF CVE-2026-107734

HIGH
Improper Input Validation (CWE-20)
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
    Deliver crafted PDF plus malicious .synctex.gz
  2. Delivery
    Victim opens PDF with editor configured
  3. Exploit
    Victim invokes inverse search
  4. Execution
    Filename breaks editor command-line quoting
  5. Persist
    Injected flags run in external editor
  6. Impact
    Editor executes attacker action or extension

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires ALL of the following concrete prerequisites, per the advisory: (1) the victim must have an external inverse-search editor configured in SumatraPDF or auto-detected; (2) the attacker must supply both a PDF and a sibling .synctex.gz file (named <pdf-basename>.synctex.gz) containing a SyncTeX Input source filename carrying a quote-breakout payload such as foo.tex" --install-extension evil.vsix --; and (3) the victim must open that PDF and actively invoke inverse search (e.g. double-click to jump to source) at a location mapping to the malicious node. Limiting factors that reduce realistic risk: the feature is specific to LaTeX/SyncTeX workflows (not default usage), it requires explicit user interaction (UI:A), the %f substitution path is only reached for configured/auto-detected editors, and actual code execution is NOT guaranteed by SumatraPDF itself - it hinges on the target editor interpreting the injected command-line flags. The product is Windows-only.

Impact

This is a moderate, conditional risk rather than a drop-everything priority. The provided CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:A) describes a local, user-interaction-dependent attack with an attack requirement (AT:P) - not a remotely-reachable flaw - so the 7.1 base score is driven largely by the high VC:H/VI:H/VA:H impact if code execution is achieved. Several signals pull the real-world risk down: exploitation requires the victim to have an external editor configured or auto-detected, to open an attacker-supplied PDF carrying a crafted .synctex.gz, AND to actively invoke inverse search, and even then the impact is indirect - it depends on the target editor interpreting the injected flags (e.g. VS Code's --install-extension loading a malicious .vsix). Working exploit/PoC code exists (embedded in the vendor's regression test and referenced advisory), which raises concern, but this is distinct from active exploitation: no CISA KEV listing and no EPSS score are provided in the input, so there is no evidence of widespread or automated exploitation. No fixed version is available as of this review, which increases exposure, but the long interaction chain makes this better suited to targeted social-engineering than mass exploitation. Note a signal tension worth flagging: PR:N labels this 'unauthenticated,' but the vector is local and gated by UI:A/AT:P, so 'unauthenticated remote' framing would be misleading.

Exploit ScenarioDerived

An attacker sends a victim a PDF bundled with a malicious foo.synctex.gz whose SyncTeX source filename embeds a quote breakout and extra flags such as foo.tex" --install-extension evil.vsix --. The victim, who has an external editor (e.g. VS Code) configured for inverse search, opens the PDF and double-clicks to jump back to source, causing SumatraPDF to build an editor command line via CreateProcessW() with the injected arguments. Public PoC code exists (included in the vendor's regression test), so weaponization effort is low, though success still depends on the configured editor honoring the injected flags.

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

Command-line argument injection in SumatraPDF 3.5.2 and earlier lets an attacker-controlled SyncTeX source filename escape the quoting of an external editor's command template and inject arbitrary flags when a victim triggers inverse search. The attack is strictly conditional: it requires a PDF paired with a crafted sibling .synctex.gz file, a configured or auto-detected inverse-search editor, and a deliberate user action (double-clicking to jump to source) at a coordinate that maps to the malicious node. Per the advisory-supported conditions, code execution is not guaranteed by SumatraPDF itself and depends on the target editor honoring the injected flags (for example, installing a malicious extension), so this is a moderate, conditional risk rather than a drop-everything priority; no public exploit has been identified at time of analysis, and no fixed release is available as of this review, though an upstream fix commit exists.

RemediationAI

No vendor-released fixed version is confirmed as of this review - the affected range is 3.5.2 and earlier and no patched release number is given - but an upstream fix is available in commit 398d23624362c60722d9709173a287ea53545b3b, so users should track the advisory at https://github.com/sumatrapdfreader/sumatrapdf/security/advisories/GHSA-jf4v-rw66-j4w2 and upgrade as soon as a build containing that commit is published; the fix rejects SyncTeX source names containing " < > | CR LF TAB and doubles embedded double quotes in the editor command line. Until then, the most effective compensating control is to leave the inverse-search external editor unconfigured (or clear any auto-detected editor path), which removes the CreateProcessW call path entirely - the trade-off is that inverse search stops working for legitimate LaTeX workflows. Users who need inverse search should avoid opening PDFs whose sibling .synctex.gz files come from untrusted sources, and can block or strip .synctex.gz sidecars at mail gateways, download filters, or archive-extraction layers so the crafted Input line never reaches the reader, at the cost of breaking legitimate SyncTeX functionality for shared documents. Choosing editors whose command templates do not accept behavior-changing flags for the %f position, and avoiding templates that permit extension or plugin installation from the command line, reduces the impact if the injection is triggered. Because the attack arrives as a local file pair requiring an explicit user action, endpoint detection should focus on child-process creation from SumatraPDF whose command lines contain unexpected flags or reference .vsix/.vsix-style payload paths.

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

SumatraPDF is a multi-format document reader for Windows, and SyncTeX is the auxiliary data format produced by TeX/LaTeX engines that maps typeset page coordinates back to source file positions, enabling "inverse search" (clicking in the rendered PDF to jump to the corresponding line in an editor). SumatraPDF reads a sidecar file named <pdf-basename>.synctex.gz that travels alongside the PDF, extracts the Input source filename, and substitutes it for the %f placeholder in the inverse-search editor command template before handing the assembled string to CreateProcessW(). Because the filename is attacker-controlled and was previously inserted without Windows argument quoting, a name such as foo.tex" --install-extension evil.vsix -- closes the quote that built-in editor templates place around %f and turns the remainder into separate argv tokens for the editor. The root cause is classified as CWE-20 (Improper Input Validation): the application failed to validate or safely encode untrusted data crossing from a data file into an OS command line. The upstream fix addresses both layers - SyncTex::DocToSource now rejects source names containing " < > | CR LF or TAB (characters that cannot appear in a real Windows path; '*' is retained because SyncTeX encodes spaces as '*'), and BuildOpenFileCmdTemp doubles embedded double quotes as defense in depth for other callers and user-defined templates. The accompanying regression test drives the headless TestInverseSearch control command against a synthetic PDF plus .synctex.gz whose Input carries the payload, and asserts the injection string never surfaces as a resolved source path.

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 file-based vector (AV:L) requiring a configured editor, a crafted synctex, and victim-invoked inverse search (AC:H, UI:R); no privileges needed (PR:N); high impact only if the editor executes injected flags.

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.5.2 and earlier, an attacker-controlled SyncTeX source filename is substituted for the %f placeholder in an external editor command line without safe Windows argument quoting, and the resulting command line is passed to CreateProcessW(). A user with an external editor configured or auto-detected who opens a PDF with a crafted .synctex.gz file and invokes inverse search can inject command-line flags; the resulting impact depends on the target editor interpreting those flags and can include unintended editor actions or code execution through a malicious extension. 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 / "Argument Injection"), tracked by MITRE under CWE-20 in the CVE record.

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

A command-line argument injection flaw in SumatraPDF 3.5.2 and earlier means that an attacker who can deliver a malicious PDF alongside a crafted .synctex.gz file could hijack the editor launch that occurs during inverse search, potentially running unintended commands or loading attacker-controlled extensions within the victim's configured text editor. The risk is confined to users who have an inverse-search editor configured and who deliberately double-click a document location, and successful compromise depends on the behavior of that third-party editor rather than SumatraPDF alone. Leadership should care because the product is widely deployed on engineering, research, and analyst workstations where untrusted PDFs are routinely opened, but the conditional, user-initiated nature of the attack and absence of any observed exploitation make this a manageable patching-and-hardening item rather than an emergency.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable or clear the inverse-search editor command in SumatraPDF so no external process is launched; avoid opening PDFs that are accompanied by untrusted .synctex.gz files; block .synctex.gz attachments and downloads at email and web gateway controls; apply application allowlisting and EDR monitoring for editor processes spawned by SumatraPDF with unusual flags; restrict or remove LaTeX/editor extension installation privileges for standard users.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular lightweight Windows PDF reader, but niche SyncTeX/LaTeX inverse-search feature path
Data Quality
4 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

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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