termux-sync: Restore extracts archive members outside the backed-up directory because the extraction jail is the
Affects termux-syncSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 5.5 Medium : upgrade to 1.3.8 when convenient.
Data as of 3 Dec 2026, 04:32 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.5 |
|---|
- Patch
- Available – fixed in 1.3.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade termux-sync to 1.3.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPItermux-sync | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in termux-sync version 1.3.8 that correctly restricts extraction to the intended backup root directories. Users should upgrade to version 1.3.8 or later. Until upgraded, users should avoid restoring backups from untrusted sources. No additional mitigations are indicated by the vendor advisory.
Description
The termux-sync restore command improperly extracts archive members outside their intended backup directories, allowing an attacker controlling a backup to overwrite files anywhere under the $PREFIX directory. This includes critical executables like $PREFIX/bin/sh, enabling code execution as the Termux user upon next invocation. The issue is a residual flaw from a previous fix (CVE-2026-86046) due to the extraction jail being set to the parent directory rather than the exact backup root. Only termux-sync versions before 1.3.8 are affected.
References
- github.com/djunekz/termux-sync/security/advisories/GHSA-x9x8-xcv7-5x5g (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141553 (opens in a new tab)
- github.com/djunekz/termux-sync/commit/3dd44a266cc9fba816c684164067616c7c0ef61d (opens in a new tab)
- github.com/djunekz/termux-sync/commit/40a016331662c2c161f6045657b374fd00c05811 (opens in a new tab)
- github.com/djunekz/termux-sync (opens in a new tab)
- github.com/djunekz/termux-sync/releases/tag/v1.3.8 (opens in a new tab)