PyPI
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
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 1.3.8
- Weakness
- Path traversal (CWE-22)
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N- Also known as
- GHSA-x9x8-xcv7-5x5g
- Sources
- OSV.dev and GitHub
Description
termux-sync restore extracts each archive into the parent of the directory that archive is supposed to hold. The containment check then compares members against that wider directory, so an archive declared as usr_etc or usr_lib can write anywhere under $PREFIX, including $PREFIX/bin.
This is a residual gap in the fix for GHSA-259w-wmqg-fp76 / CVE-2026-86046. The guards that advisory added all work. What survives is the choice of destination they are checked against.
An attacker who controls the content of a backup that a victim restores can write files anywhere under $PREFIX, overwriting existing ones. Replacing an executable such as $PREFIX/bin/sh gives code execution as the Termux user the next time anything invokes it, and it leaves dpkg's record of $PREFIX disagreeing with what is on disk.
Attacker requirements:
- Write access to the backup the victim restores. Nothing on the victim's device. This is the same position GHSA-259w-wmqg-fp76 described: "a victim who restores a…
Affected software
| Software | Affected versions |
|---|---|
termux-syncPyPI · osv:PyPI:termux-sync |
|
About termux-sync
- Weekly downloads (PyPI)
- 99PyPI Stats, 1 Dec 2026
Vulnerabilities in termux-sync
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-86046termux-sync: Arbitrary file write during restore via attacker-controlled manifest source pathHigh 7.1 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141553
- GitHub Advisory Database https://github.com/advisories/GHSA-x9x8-xcv7-5x5g