# CVE-2026-86046: termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-11-16T17:05:26.683Z
- Modified: 2026-11-16T22:15:05.672Z
- Also known as: GHSA-259w-wmqg-fp76
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- djunekz termux-sync: < 1.2.4
- termux-sync (PyPI): before 1.2.4

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76> (web)
- <https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf> (web)
- <https://github.com/djunekz/termux-sync/releases/tag/v1.2.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-86046> (advisory)
- <https://github.com/djunekz/termux-sync> (package)

## Sources

- CVE List: [CVE-2026-86046](https://www.cve.org/CVERecord?id=CVE-2026-86046), CVE Terms of Use, modified 2026-11-16
- GitHub Advisory Database: [GHSA-259w-wmqg-fp76](https://github.com/advisories/GHSA-259w-wmqg-fp76), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-86046](https://nvd.nist.gov/vuln/detail/CVE-2026-86046), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-86046 · Whole record: https://cve.day/CVE-2026-86046.json · Rebuilt by cve.day 2026-11-25T22:59:50.902Z
