Skip to main content

termux-sync CVE-2026-86046

| EUVDEUVD-2026-126531 HIGH
Path Traversal (CWE-22)
2026-11-16 security-advisories@github.com GHSA-259w-wmqg-fp76
7.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious backup (manifest source + tar members)
  2. Delivery
    Victim restores tampered backup
  3. Exploit
    Write arbitrary files outside jail
  4. Execution
    Overwrite shell startup/executable scripts
  5. Impact
    Code 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 termux-sync restore (version <= 1.2.3) on a malicious or tampered backup obtained from local, shared, GitHub, or Google Drive storage - this is the user-interaction (UI:R) and local-vector (AV:L) prerequisite. No authentication is required (PR:N): the trust boundary violated is the backup archive itself, whose manifest.json files.*.source value and tar member paths are fully attacker-controlled and used as the extraction destination without any path-containment check. Limiting factors that reduce real-world risk: the attacker must first get the victim to restore attacker-controlled content, and code execution is NOT immediate - it occurs only when an overwritten shell startup file or executable script is later used. The affected feature is specifically the restore path; backup/other operations are unaffected, and 1.2.4 fully remediates it.

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 termux-sync restore against an attacker-supplied or tampered backup, so it cannot be driven remotely without that user action (UI:R). There is NO KEV listing and NO EPSS score in the supplied data, so widespread or automated exploitation is not evidenced - consistent with a niche tool and a social-engineering-dependent trigger. On PoC: the GHSA advisory contains a reporter-run, marker-only reproduction that confirmed arbitrary write to $HOME, but the author explicitly offers to 'share a minimal private marker-only PoC on request' - so a public PoC reference exists; it is not verified as working, publicly distributed exploit code. The vuln.today Decision label is 'this_week', which matches a credible, patch-available High that is not under active mass exploitation. Net: prioritize patching within the week, but this is not a high-urgency internet-facing emergency - real risk is gated by the victim restoring an untrusted backup.

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 files.*.source whose parent is a sensitive directory such as $HOME, and whose tar archive contains members like .bashrc or executable scripts. When the victim restores that backup, extract_archive writes those members outside any intended jail, overwriting shell startup files; code runs the next time the victim opens a shell. The reporter demonstrated this with a marker-only reproduction (private PoC available on request), confirming arbitrary write to $HOME and startup-file-style overwrite.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

termux-sync < 1.2.4

Affected Packages

pypi termux-sync fix: 1.2.4

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

Vendor (github) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
vuln.today AI 7.1 HIGH

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 18:19 EUVD
CVE Published
Nov 16, 2026 - 17:17 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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).

Business Impact: High
Compensating Controls

Vendor-released patch: 1.2.4

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Rare
obscure open-source Termux backup utility, tiny hobby install base
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy