Threat Advisory

Termux-Sync Backup Restore Lets Attackers Write Arbitrary Files

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-86046 with a CVSS score of 7.1 is a path traversal and arbitrary file write vulnerability in the termux-sync restore function, affecting termux-sync (pip) versions <= 1.2.3. The flaw occurs because restore trusts attacker-controlled fields in an untrusted backup manifest, particularly the source value, and uses its parent directory as the extraction destination without validating that it remains under an expected restore root. During extraction, archive members are processed without a path jail or filtering, allowing entries to resolve outside the intended destination. An attacker can exploit this by supplying a malicious backup that a victim restores from a local source, shared location, or compromised storage backend. The attacker does not need prior access beyond causing the victim to restore the crafted backup, and the write destination is controlled by the manifest. Successful exploitation can create or overwrite files anywhere the Termux user can write, including shell startup files or executable scripts, leading to local code execution when those files are later used. The business impact is compromise of the affected user environment, loss of integrity and confidentiality of local data, and potential escalation to persistent unauthorized execution.

RECOMMENDATION:

We recommend you to update termux-sync to version 1.2.4.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-86046 with a CVSS score of 7.1 is a path traversal and arbitrary file write vulnerability in the termux-sync restore function, affecting termux-sync (pip) versions <= 1.2.3. The flaw occurs because restore trusts attacker-controlled fields in an untrusted backup manifest, particularly the source value, and uses its parent directory as the extraction destination without validating that it remains under an expected restore root. During extraction, archive members are processed without a path jail or filtering, allowing entries to resolve outside the intended destination. An attacker can exploit this by supplying a malicious backup that a victim restores from a local source, shared location, or compromised storage backend. The attacker does not need prior access beyond causing the victim to restore the crafted backup, and the write destination is controlled by the manifest. Successful exploitation can create or overwrite files anywhere the Termux user can write, including shell startup files or executable scripts, leading to local code execution when those files are later used. The business impact is compromise of the affected user environment, loss of integrity and confidentiality of local data, and potential escalation to persistent unauthorized execution.

RECOMMENDATION:

We recommend you to update termux-sync to version 1.2.4.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu