CVE-2026-141553
## Summary `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. ## Affected versions Tested on: - Package version: `termux-sync` 1.3.6 installed from PyPI (`termux_sync-1.3.6-py3-none-any.whl`) - Repository commit: `054e6d88acf16c7d9b025846bcc2652b2975c68a` on main - Python: 3.12.16, where `tarfile.data_filter` is available - Dependencies: `rich==15.0.0`, `markdown-it-py==4.3.0`, `mdurl==0.1.2`, `Pygments==2.21.0` - OS: Debian in a container, non-root, no network during the restore Only 1.3.6 was tested. The primitive looks present in earlier releases, but unchecked. Releases before `9c8637b` are already covered by CVE-2026-86046. Main and the release differ only inside `cmd_daemon`. Lines 1 to 700, which hold all the archive and extraction code, are identical, so main has the same behaviour. `termux-sync.py` is a byte-identical copy of `src/termux_sync/__init__.py`, so the line numbers below apply to both. ## Impact 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 malicious backup (local, shared, or from a compromised GitHub/Google Drive storage backend)". A backup
Properties
- Severity
- medium
- Summary
- termux-sync: Restore extracts archive members outside the backed-up directory because the extraction jail is the parent of each backup root
- Nvd fetched at
- 2026-12-04T15:00:48.841578+00:00
- Epss score
- 0.00325
- Cvss severity
- MEDIUM
- Cvss score
- 5.5
- Retrieved at
- 2026-12-04T15:02:58+00:00
- Ghsa published
- 2026-12-03T02:36:05Z
- Source url
- https://github.com/advisories/GHSA-x9x8-xcv7-5x5g
- Ghsa updated
- 2026-12-03T02:36:06Z
- Ghsa id
- GHSA-x9x8-xcv7-5x5g
- Last source
- FIRST EPSS
- Score
- 5.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-141553
- Cvss vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- First seen by Signal
- 2026-12-02T22:45:38+00:00
- Name
- CVE-2026-141553
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph