CVE-2026-86046 termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi termux-sync(PyPI) | < 1.2.4; <= 1.2.3; = 1.1.0; = 1.1.1 +5 more | 1.2.4 | Fixed |
| djunekz termux-sync | = < 1.2.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djunekz termux-sync | = < 1.2.4 | No fix listed |
| pypi termux-sync(PyPI) | <= 1.2.3 | No fix listed |
| pypi termux-sync(PyPI) | < 1.2.4 | 1.2.4 |
| pypi termux-sync(PyPI) | = 1.1.0 | No fix listed |
| pypi termux-sync(PyPI) | = 1.1.1 | No fix listed |
| pypi termux-sync(PyPI) | = 1.1.2 | No fix listed |
| pypi termux-sync(PyPI) | = 1.2.0 | No fix listed |
| pypi termux-sync(PyPI) | = 1.2.1 | No fix listed |
| pypi termux-sync(PyPI) | = 1.2.2 | No fix listed |
| pypi termux-sync(PyPI) | = 1.2.3 | No fix listed |
References
- https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf patch
- https://github.com/djunekz/termux-sync/releases/tag/v1.2.4
- https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-126531 third-party-advisory