CVE-2026-141553: termux-sync: Restore extracts archive members outside the backed-up directory because the extraction jail is the parent of each backup root
termux-sync is an open source tool for backing up and restoring a Termux environment across devices. Prior to 1.3.8, termux-sync checks restored archive members against the parent of each backed-up directory instead of the directory itself. An attacker who controls a backup that a user restores can write files to other locations under the Termux installation prefix, including replacing executables. This can result in arbitrary code execution with the privileges of the Termux user when a replaced executable is run. This issue is fixed in version 1.3.8.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.3.8
Event History
Frequently Asked Questions
Which installations should be prioritized for remediation?
Termux environments using termux-sync versions earlier than 1.3.8 are affected when they restore a backup controlled by an attacker. The issue can modify files elsewhere under the Termux installation prefix.
What does an attacker need to exploit this issue?
An attacker must control a backup archive that the user restores. Exploitation also requires the user to perform the restore and later run an executable that was replaced through the archive.
What is the impact if exploitation succeeds?
An attacker can replace executables under the Termux installation prefix. Running a replaced executable can lead to arbitrary code execution with the privileges of the Termux user.
What should be done if an immediate upgrade is not possible?
Do not restore backups that are controlled by or obtained from an untrusted party. Upgrade termux-sync to version 1.3.8, which fixes the issue, as soon as possible.