CVE-2026-86046
Received Received - Intake

Termux-Sync Path Traversal Vulnerability in Restore Function

Vulnerability report for CVE-2026-86046, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

Description

termux-sync is an open source tool for backing up and restoring a Termux environment across devices. Prior to 1.2.4, termux-sync restore uses the parent directory of the untrusted manifest.json files.*.source value as an extraction destination, and extract_archive calls tarfile.extract on archive members without enforcing a destination boundary. A victim who restores a malicious or tampered backup from local, shared, GitHub, or Google Drive storage can have files written anywhere the Termux user can write, including shell startup files or executable scripts that can lead to code execution when later used. The restore path also accepts unsafe backup_name values for temporary paths, and archive members are not constrained to the intended destination. This issue is fixed in version 1.2.4.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
termux termux_sync 1.2.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-86046 is an arbitrary file write vulnerability in termux-sync, a tool for backing up and restoring Termux environments. The issue occurs during the restore process when the application uses untrusted paths from a manifest.json file to determine where to extract backup files. Without proper validation, attackers can manipulate these paths to write files outside intended directories, including shell startup files or scripts that could lead to code execution.

Detection Guidance

Check if you are running termux-sync version 1.2.3 or earlier. Run 'pkg show termux-sync' to verify the installed version. If the version is vulnerable, update to 1.2.4 or later immediately.

Impact Analysis

If you restore a malicious or tampered backup, an attacker could overwrite critical files like shell startup scripts or configuration files. This could allow arbitrary code execution when you use your system. The vulnerability requires user interaction but allows full control over file writes within your Termux user's writable directories.

Mitigation Strategies

Update termux-sync to version 1.2.4 or later. Avoid restoring backups from untrusted sources. Review shell startup files and system configurations for unauthorized changes after any restore operation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-86046. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...