Advisories for Pypi/Termux-Sync package

2026

termux-sync: Arbitrary file write during restore via attacker-controlled manifest source path

termux-sync restore trusts fields inside an untrusted backup manifest and uses them as the extraction destination without validation. During restore, each archive entry is handled as: src_dir = Path(info.get("source", …)).parent extract_archive(archive, src_dir, …) extract_archive opens the archive and runs tarfile.extract for every member with no path jail and no filter: with tarfile.open(archive_path, "r:*") as tf: for member in tf.getmembers(): tf.extract(member, dest_path, set_attrs=True) There is no check that manifest "source" stays …