ZeroHour

CVE-2026-82635

moderate

Path Traversal in Pake's download_file Enables Arbitrary File Writes and Persistence

CVSS 3.1
8.8 high
EPSS
<1%p33
Published
()
Modified
AI analysis

Pake before 3.13.1 fails to sanitize the filename passed to its download_file Tauri command, so filenames containing path traversal sequences (for example ../Library/LaunchAgents/com.evil.plist) or absolute paths resolve outside the user's Downloads directory. Any script or page that can invoke the command triggers the flaw: the app fetches attacker-controlled content from a supplied URL over Rust HTTP (not the browser) and writes it to the attacker-chosen path. An attacker can thereby overwrite user-writable files and plant persistence such as macOS LaunchAgents, Linux autostart entries, or Windows Startup items, achieving code execution in the user's account. All desktop applications generated from an affected Pake tree are affected across macOS, Linux, and Windows; the CVSS 3.1 score of 8.8 (high) reflects a network attack vector requiring user interaction. No public proof-of-concept or in-the-wild exploitation is currently known, and EPSS estimates only a 0.4% probability of exploitation within the next 30 days.

What to do: Upgrade Pake to 3.13.1 or later and rebuild and redistribute any desktop apps generated from earlier builds. Until rebuilt, be cautious with untrusted scripts or pages that can invoke the download_file command inside Pake-wrapped apps, and audit macOS LaunchAgents, Linux autostart directories, and Windows Startup folders for unexpected persistence entries. Monitor for public PoCs given the straightforward exploitation path.

Affected
faberon pakeAll versions before 3.13.1; affects the Pake tool itself and every desktop app generated from an affected Pake build
Estimated exposure
moderateLikely on the order of tens of thousands of users of Pake-built desktop apps (no official install telemetry) — No install or device counts are published, so the estimate is scaled from Pake's standing as a popular open-source webpage-to-desktop-app tool (roughly 30k GitHub stars) whose generated apps are distributed in small batches by third…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Pake before 3.13.1 joins the JavaScript-supplied filename for the download_file Tauri command onto the user's Downloads directory with no sanitization. A filename containing path traversal sequences (for example ../Library/LaunchAgents/com.evil.plist) or an absolute path resolves outside ~/Downloads. The command then fetches attacker-controlled content from the supplied URL (via Rust HTTP, not the browser) and writes it to that path. A script that can invoke the command can overwrite user-writable files and install persistence (macOS LaunchAgents, Linux autostart, Windows Startup), leading to code execution in the user account. All desktop apps generated from an affected Pake tree expose the same command.

Vendors
faberon
Products
pake
Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.