CVE-2026-86046: termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path
Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-259w-wmqg-fp76
Summary
The termux-sync package is vulnerable to arbitrary file writes during the restore process because it fails to validate source paths provided in untrusted manifest files. Users of termux-sync should update to version 1.2.4 or later to mitigate this risk.
Who is affected
An attacker can provide a malicious backup containing crafted manifest files and archive entries to write files anywhere the Termux user has write permissions. This can be leveraged to overwrite shell configuration files or scripts, potentially leading to local code execution when the user later executes those files.
Exploitability
The vulnerability is rated as High severity with a CVSS 3.1 score of 7.1. Exploitation requires local access and user interaction to initiate a restore from an untrusted source, as indicated by the AV:L and UI:R vector components. There is no evidence of active exploitation in the wild via CISA KEV.
Remediation
- Upgrade to termux-sync version 1.2.4 or later.
- Treat all backup archives and manifest files from untrusted sources as potentially malicious.
- Implement path validation and use safe tar extraction filters (e.g., filter='data') to prevent directory traversal.
How to check your project
- Inspect the installed PyPI package version by running 'pip show termux-sync' or 'pip list'.
- Review dependency management files (requirements.txt or pyproject.toml) to identify if the version is below 1.2.4.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | termux-sync |
>= 0, < 1.2.4 | 1.2.4 | python -m pip install 'termux-sync>=1.2.4' |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | High |
| Availability | High |
FAQ
What specifically allows this arbitrary file write?
The application blindly trusts the 'source' field in the backup manifest to define the extraction destination and uses the tarfile.extract method without a path jail or filtering.
Can an attacker overwrite system files?
The impact is limited to paths where the Termux user has write permissions; it does not necessarily grant root-level write access unless the Termux user context itself has those permissions.
Is there a known exploit currently being used in the wild?
No. The CISA Known Exploited Vulnerabilities catalog lists this as 'no'.
Original advisory description
References
- WEB https://github.com/djunekz/termux-sync/security/advisories/GHSA-259w-wmqg-fp76
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-86046
- WEB https://github.com/djunekz/termux-sync/commit/9c8637b280ee3e126885def5ff5b326c289ee7cf
- PACKAGE https://github.com/djunekz/termux-sync
- WEB https://github.com/djunekz/termux-sync/releases/tag/v1.2.4
Source records: GHSA-259w-wmqg-fp76 (OSV.dev) · EPSS by FIRST, 2026-11-26.