termux-sync: Restore extracts archive members outside the backed-up directory because the extraction jail is the parent of each backup root
CVE-2026-141553GHSA-x9x8-xcv7-5x5gPublished 2 Dec 2026, 19:51 UTC
Real-world risk
2.1/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| termux-syncNiche | < 1.3.8 | 1.3.8 |
| termux-syncNiche | <= 1.3.7 | 1.3.8 |
What to do
Update to a fixed version: 1.3.8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 28), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.35 × threat 0.852.082
- Rounded to one decimal between 0.1 and 102.1
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 2.1 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/djunekz/termux-sync/security/advisories/GHSA-x9x8-xcv7-5x5gvendor-advisory
- https://github.com/djunekz/termux-sync/commit/3dd44a266cc9fba816c684164067616c7c0ef61dmisc
- https://github.com/djunekz/termux-sync/commit/40a016331662c2c161f6045657b374fd00c05811misc
- https://github.com/djunekz/termux-sync/releases/tag/v1.3.8misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-141553
- https://github.com/advisories/GHSA-x9x8-xcv7-5x5g
- CVE-2026-141553 on CVE.org