CVE-2026-86046
High 7.1No known exploitationFix availabletermux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
Vendor advisory: GHSA-259w-wmqg-fp76
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 19% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-22
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| pip | termux-sync | all versions up to and including 1.2.3 | 1.2.4 | GitHub Advisory Database |
Timeline
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-259w-wmqg-fp76 (opens in a new tab)github-advisory
- https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf (opens in a new tab)
- https://github.com/djunekz/termux-sync/releases/tag/v1.2.4 (opens in a new tab)
- https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76 (opens in a new tab)