PyPI
CVE-2026-86046
termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
- Severity
- High 7.1
- Published
- 16 Nov 2026
- Last changed
- 16 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.2.4
- Exploit chance
- 0.3% in the next 30 daysHigher than 18% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H- Also known as
- GHSA-259w-wmqg-fp76
- Sources
- OSV.dev and GitHub
Description
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.
Affected software
| Software | Affected versions |
|---|---|
termux-syncPyPI · osv:PyPI:termux-sync |
|
About termux-sync
- Weekly downloads (PyPI)
- 476PyPI Stats, 24 Nov 2026
This is the only vulnerability in termux-sync in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-86046
- GitHub Advisory Database https://github.com/advisories/GHSA-259w-wmqg-fp76