CVE-2026-86046
HIGH 7.1CVSS 3.1termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
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.
- Published
- 16 Nov 2026
- Last modified
- 16 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-22
- Also known as
- GHSA-259w-wmqg-fp76
- Sources
- NVDJSONOSV GHSA-259w-wmqg-fp76JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | termux-sync | < 1.2.4 | 1.2.4 |
References
- https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf · WEB
- https://github.com/djunekz/termux-sync/releases/tag/v1.2.4 · WEB
- https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-86046 · ADVISORY
- https://github.com/djunekz/termux-sync · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 16 Nov 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Nov 2026)