CVE-2026-141553
Received Received - Intake

Path Traversal in Termux-Sync Tool

Vulnerability report for CVE-2026-141553, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
termux termux_sync to 1.3.8 (exc)
djunekz termux-sync to 1.3.8 (inc)
djunekz termux-sync From 1.3.8 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects termux-sync, a tool for backing up and restoring Termux environments. In versions before 1.3.8, the tool incorrectly validated archive members during restoration, allowing attackers who control a backup to write files outside the intended directory. This could replace executables like bin/sh, leading to arbitrary code execution with the privileges of the Termux user.

Detection Guidance

To detect this vulnerability, check the installed version of termux-sync. If it is below 1.3.8, the system is vulnerable. Run 'pkg show termux-sync' to verify the version. Also inspect backup archives for suspicious paths like 'bin/sh' in non-bin directories or symbolic links escaping intended folders.

Impact Analysis

If you restore a malicious backup, an attacker could overwrite critical files in your Termux installation, including executables. This could allow the attacker to run arbitrary code when you execute those files, potentially compromising your Termux environment and data.

Mitigation Strategies

Upgrade termux-sync to version 1.3.8 or later immediately. Avoid restoring backups from untrusted sources. Review restored files for unexpected changes in critical directories like $PREFIX/bin. Use the restore preview feature to check member paths before extraction.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-141553. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...