Skip to content

Untrusted Search Path in SumatraPDF Reader (explorer.exe on Windows)

High
kjk published GHSA-5x4h-247q-px37 Feb 9, 2026

Package

SumatraPDF Reader (Windows)

Affected versions

<3.5.2

Patched versions

Not Available

Description

Summary

The PDF reader allows execution of a malicious binary (explorer.exe) located in the same directory as the opened PDF when the user clicks File → “Show in folder”.
This behavior leads to arbitrary code execution on the victim’s system with the privileges of the current user, without any warning or user interaction beyond the menu click.

Details

The “Show in folder” functionality is expected to safely invoke the system file explorer using a trusted, absolute path from the system directory. However, the application instead resolves and executes explorer.exe relative to the directory containing the currently opened PDF file first.

An attacker can exploit this behavior by placing a malicious explorer.exe in the same directory as a crafted PDF file. When the victim opens the PDF and selects File → “Show in folder”, the application executes the attacker-controlled binary instead of the legitimate system explorer.

This indicates improper handling of executable paths and reliance on an untrusted working directory, resulting in binary hijacking.

PoC

  1. Create a malicious executable named explorer.exe which lanches explorer.exe in the path specified and calc.exe.
  2. Place this executable in the same directory as a PDF file.
  3. Open the PDF file.
  4. From the menu, select File → “Show in folder”.
  5. Observe that the malicious explorer.exe is executed instead of the legitimate system file explorer

PoC video:

POC2.mp4

Impact

This is a local arbitrary code execution vulnerability via binary hijacking. Any user who opens a PDF from an poisoned directory is impacted. An attacker could leverage this issue to execute malware, establish persistence or perform further actions on the victim’s system under the context of the logged-in user.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVE ID

CVE-2026-25880

Weaknesses

Untrusted Search Path

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. Learn more on MITRE.

Credits