Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious backup (manifest source + tar members)
-
DeliveryVictim restores tampered backup
-
ExploitWrite arbitrary files outside jail
-
ExecutionOverwrite shell startup/executable scripts
-
ImpactCode execution on next shell use
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to actively run |
| Impact | This is a genuine integrity/availability flaw but not a drop-everything emergency. The provided CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H = 7.1 High) correctly models a LOCAL attack vector: exploitation hinges on the victim running |
| Exploit ScenarioDerived | An attacker publishes or tampers with a termux-sync backup (local file, shared storage, or a compromised GitHub/Google Drive backend) whose manifest.json sets a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Arbitrary file write in termux-sync 1.2.3 and earlier lets a malicious or tampered backup escape the intended restore directory: the restore path derives its extraction destination from the untrusted manifest.json files.*.source value and calls tarfile.extract on each archive member with no path-containment check, so files can land anywhere the Termux user can write. The flaw is local (AV:L) and requires the victim to run termux-sync restore on attacker-supplied content from local, shared, GitHub, or Google Drive storage (UI:R) with no authentication (PR:N); code execution is not immediate but follows when an overwritten shell startup file or executable script is later used, which is why confidentiality is unscored while integrity and availability are rated High. A marker-only reproduction is described in the advisory; no public working exploit code is known, and there is no CISA KEV entry or EPSS data in the supplied sources. Version 1.2.4 fully remediates the issue.
RemediationAI
Vendor-released patch: upgrade to termux-sync 1.2.4 from the v1.2.4 release tag (https://github.com/djunekz/termux-sync/releases/tag/v1.2.4), which implements the fixes in commit 9c8637b280ee3e126885def5ff5b326c289ee7cf as detailed in GHSA-259w-wmqg-fp76; the advisory states 1.2.4 fully remediates the issue, so updating is the complete fix. Where upgrading is not immediately possible, treat every backup as untrusted input before restoring: inspect manifest.json and reject any files.*.source value whose parent directory is outside the roots you expect (for example anything resolving to $HOME when it should be a subdirectory) and reject entries whose paths are absolute or contain '..' segments; the trade-off is that this is a manual, error-prone review of an archive you must fully unpack and read, and it does not protect against symlink or hardlink members or against the backup_name temporary-path issue, all of which only the 1.2.4 code checks. Restrict restore operations to backups you produced yourself or that came over a channel you control, and be aware that a successful write to shell startup files or executable scripts only causes code execution later, when those files are used.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause class is CWE-22 (path traversal), manifesting in a Python tarfile extraction helper. In vulnerable versions, cmd_restore built the extraction root as Path(info.get("source", ...)).parent using the source field read from the backup's own manifest.json - attacker-controlled backup content - so the attacker chose the destination directory outright. extract_archive then opened the archive with tarfile.open(archive_path, "r:*") and looped over tf.getmembers() calling tf.extract(member, dest_path, set_attrs=True) with no path jail and no extraction filter, so member names containing '..' or absolute paths, and symlink/hardlink targets, were followed wherever they pointed. The same restore path also accepted backup_name values containing separators or '..' when constructing temporary restore paths. The fix in commit 9c8637b derives destinations only from the application's own BACKUP_ITEMS roots, refuses unknown manifest keys, validates each member's resolved path and link targets stay inside the destination, rejects character/block/fifo entries, applies Python 3.12's filter="data" where available, and reduces backup_name to a sanitized basename. Only the restore code path is affected; backup and other operations are unaffected.
Know when the next one hits your stack
- 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
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Exploitation requires the victim to restore an attacker-supplied backup locally (AV:L, UI:R); no auth needed (PR:N); arbitrary file write/overwrite gives high integrity and availability impact with no direct disclosure (C:N).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), manifested as an arbitrary file write / path-containment failure in termux-sync's restore path.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-86046 in termux-sync versions 1.2.3 and earlier enables arbitrary file write when a user restores a tampered backup, potentially overwriting critical startup files or executables. This could lead to unauthorized code execution and system compromise, impacting the integrity and availability of affected Termux environments. Leadership should prioritize remediation given the high severity and the presence of a fixed version (1.2.4).
Vendor-released patch: 1.2.4
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-126531
GHSA-259w-wmqg-fp76
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB