# 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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-22
- **Published:** 2026-12-02T19:51:42.235Z
- **Modified:** 2026-12-02T20:20:40.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who supplies a crafted backup can make termux-sync restore write files outside the intended directory, including replacing executables, leading to code execution as the Termux user.

## Who should check

- Anyone running djunekz termux-sync \< 1.3.8

## Description

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 and fixed versions

- djunekz termux-sync: \< 1.3.8 (cvelist)

## Mitigation

- Upgrade termux-sync to 1.3.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-141553. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141553.md
Affected: djunekz termux-sync < 1.3.8
Fixed in: djunekz termux-sync 1.3.8

Steps:
1. Search this machine and project for djunekz termux-sync: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-141553 being exploited?

There is no confirmed exploitation: CVE-2026-141553 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-141553?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-141553?

djunekz termux-sync \< 1.3.8.

### Is there a fix for CVE-2026-141553?

Yes. Fixed in djunekz termux-sync 1.3.8. Upgrade termux-sync to 1.3.8 or later.

### How do I check if I'm affected by CVE-2026-141553?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/djunekz/termux-sync/security/advisories/GHSA-x9x8-xcv7-5x5g>
- patch: <https://github.com/djunekz/termux-sync/commit/3dd44a266cc9fba816c684164067616c7c0ef61d>
- patch: <https://github.com/djunekz/termux-sync/commit/40a016331662c2c161f6045657b374fd00c05811>
- other: <https://github.com/djunekz/termux-sync/releases/tag/v1.3.8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-141553>

HTML: <https://flawdb.com/CVE-2026-141553> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-141553>
