CVE-2026-86046
termux-sync restore trusts fields inside an untrusted backup manifest and uses them as the extraction destination without validation. During restore, each archive entry is handled as: src_dir = Path(info.get("source", ...)).parent extract_archive(archive, src_dir, ...) extract_archive opens the archive and runs tarfile.extract for every member with no path jail and no filter: with tarfile.open(archive_path, "r:*") as tf: for member in tf.getmembers(): tf.extract(member, dest_path, set_attrs=True) There is no check that manifest "source" stays under an expected restore root, that tar members stay inside dest_path, or that backup_name used in temporary paths cannot contain ".." or separators. Impact: A victim who restores a malicious backup (local, shared, or from a compromised GitHub/Google Drive storage backend) can have arbitrary files written anywhere the Termux user can write. Overwriting shell startup files or executable scripts leads to local code execution on later use. Reproduction (benign markers only): 1. Build a backup directory with home.tar.gz (members: proof filename + optional config names) and manifest.json. 2. Set files.home.source to any path whose parent is the desired write directory (e.g. $HOME/dummy_for_parent so parent is $HOME). 3. Run the same extract path the tool uses: src_dir = Path(source).parent; tarfile.extract each member into src_dir. 4. Observe attacker-controlled files created under $HOME and under other chosen roots (config / shell-rc style overwrite). Expected: restore only writes under fixed, validated roots; reject unsafe source values and members that resolve outside dest. Actual: write destination is fully controlled by manifest.source; proof files and overwrites appear outside any intended jail. Fix direction: - Do not trust manifest "source" for extract roots; use fixed app-defined destinations - Sanitize backup_name (basename; reject ".." and separators) - Extract with tarfile filter="data" (
Properties
- Summary
- termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
- Severity
- high
- Nvd fetched at
- 2026-11-16T22:44:16.771339+00:00
- Cvss score
- 7.1
- Cvss severity
- HIGH
- Retrieved at
- 2026-11-16T22:45:19+00:00
- Ghsa published
- 2026-11-16T22:09:24Z
- Source url
- https://github.com/advisories/GHSA-259w-wmqg-fp76
- Ghsa updated
- 2026-11-16T22:09:25Z
- Ghsa id
- GHSA-259w-wmqg-fp76
- Last source
- GitHub Advisory Database
- Score
- 7.1
- Cvss version
- 3.1
- Cve id
- CVE-2026-86046
- Cvss vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- First seen by Signal
- 2026-11-16T18:35:21+00:00
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- Published at
- 2026-11-16T17:17:35.707
- Last modified
- 2026-11-16T19:17:53.730
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph