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.
Severity (CVSS)
| Base score | 7.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-22 — CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Affected products
| Vendor | Product | Versions |
|---|---|---|
| djunekz | termux-sync | < 1.2.4 [affected] |
References
- https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76 (x_refsource_CONFIRM)
- https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf (x_refsource_MISC)
- https://github.com/djunekz/termux-sync/releases/tag/v1.2.4 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 17 Nov 2026 08:04 UTC.