CVE-2026-82635

Pake arbitrary file write via unsanitized download_file filename

Published Aug 30, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Pake versions prior to 3.13.1 concatenates the filename supplied via the download_file Tauri command without sanitization, allowing attackers to supply a path containing traversal characters or an absolute path. The application then downloads content from the supplied URL and writes it to the resolved file location. An attacker can exploit this to overwrite files that the user can write, such as macOS LaunchAgents, Linux autostart entries, or Windows Startup files, enabling persistence and execution of malicious code within the user's account.

Affected Systems

The vulnerability affects the open‑source Pake framework (tw93:Pake) in all desktop applications generated from a Pake tree compiled with a version older than 3.13.1. The issue is present on macOS, Linux, and Windows platforms where the application runs with user privileges.

Risk and Exploitability

The vulnerability receives a CVSS score of 8.8, indicating a high severity. Though the EPSS score is not available, the scoping of the flaw suggests it is both high in potential impact and likely to be exploited in environments where malicious code can command the download_file feature, such as through a script that runs with the application. The vulnerability is not listed in CISA’s KEV catalog. The prevalent attack vector is local or via a malicious script that can invoke the Tauri command, requiring the victim to run a compromised Pake‑based application.

Remediation

Vendor Solution

Upgrade Pake to 3.13.1 or later and rebuild generated apps from that tree. The fix introduces sanitize_download_filename and uses only the final path segment before joining onto the Downloads directory, so ../ and absolute paths cannot escape that directory.


OpenCVE Recommended Actions

  • Upgrade Pake to version 3.13.1 or later and rebuild all generated applications from that source tree to apply the download_filename sanitization fix.
  • Restrict or disable the download_file Tauri command in the application configuration to prevent arbitrary file writes until a patch is available.
  • As a temporary safeguard, enforce strict write permissions on the user's Downloads directory so that only the trusted application can write, limiting abuse of path traversal.

Generated by OpenCVE AI on August 30, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Faberon
Faberon pake
CPEs cpe:2.3:a:faberon:pake:*:*:*:*:*:*:*:*
Vendors & Products Faberon
Faberon pake
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Tw93
Tw93 pake
Vendors & Products Tw93
Tw93 pake
Type Values Removed Values Added
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.
Title Pake arbitrary file write via unsanitized download_file filename
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
JFROG
Published
Updated
Aug 31, 2026, 4:58 PM
Reserved
Aug 30, 2026, 12:09 PM
Status
Analyzed
Published
Aug 30, 2026, 1:16 PM
Modified
Sep 4, 2026, 8:32 PM