CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-54727

CVE-2026-54727: Container Isolation Bypass in proot-distro via Malicious Restore Archive

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 30, 2026·5 min read·35 visits

Executive Summary (TL;DR)

A container boundary bypass in proot-distro allows a malicious restore archive to read or write files inside other isolated containers on the device.

A container isolation bypass vulnerability exists in proot-distro prior to version 5.1.6. The utility accepted hardlink entries pointing outside the container directory being restored, allowing cross-container file read and write capabilities.

Vulnerability Overview

The vulnerability designated as CVE-2026-54727 is a container isolation bypass in proot-distro before version 5.1.6. This utility manages PRoot-based rootless Linux distributions on Termux. Because all containers in this environment execute under the context of the same Termux Unix user ID, they share physical host permissions. The security boundary between containers is primarily maintained by path segregation within the application logic.

During the execution of the restore command, proot-distro extracts user-provided backup tarballs. Prior to version 5.1.6, the extraction engine failed to ensure that hardlink targets resolved exclusively within the specific container being restored. This omission allowed a malicious or compromised container archive to reference resources belonging to other separate containers, undermining the intended tenant isolation model.

Root Cause Analysis

The root cause lies in how the proot-distro restore process parsed TAR archive files containing hardlinks (tarfile.LNKTYPE). When the Python tarfile module or helper functions extract a hardlink, they resolve the target path indicated by the linkname property relative to the working directory. While proot-distro restricted links from escaping the overall directory containing all containers, it did not enforce isolation at the individual container level.

Specifically, the program did not cross-reference the container name extracted from the destination path with the container name defined in the link's source. If the destination was set to attacker-container/rootfs/... and the link's target path was ../victim-container/rootfs/..., the underlying OS hardlink call would succeed because both paths were owned by the same Termux user ID.

Additionally, a secondary input validation weakness existed in the name validation regex defined in names.py. The expression re.compile(r"^[A-Za-z0-9][A-Za-z0-9_.\-]*$") used the $ anchor instead of \Z. In Python, the $ anchor permits a trailing newline character (\n) at the end of the validated string. This enabled the creation of container names containing hidden control characters, which could lead to command injection or filesystem state confusion during path rendering.

Code Analysis

The fix for CVE-2026-54727 was implemented across several commits to enforce strict container boundaries. Commit 98aff324b7d8500ff75a8ca9ac087ee636be4716 introduced hardlink target verification during the extraction process. The following diff demonstrates how the target container name of a hardlink is extracted and validated against the active container restoration context:

# Mitigation: Enforcing that hardlink sources match the active container
link_container, link_src = _dest_path(member.linkname)
if link_src is None or link_container != restore_name:
    # Skip hardlinks pointing outside the target container
    continue

Additionally, the container name validation was hardened in commit eb1dbf8d204c8cb494e8787b935d170a802675d5 by changing the end-of-string match anchor to prevent trailing newline bypasses:

# Patched pattern using \Z
_NAME_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_.\-]*\Z")

Commit 6f73f98330b576dfc6863b9c5ad5043d043c8609 also added a helper _is_rootfs_dest to verify that the target directory resolves to the expected rootfs location of the current container. This prevents files from overwriting metadata files or other internal files during extraction.

Exploitation Methodology

An attacker can exploit this flaw by constructing a TAR archive that masquerades as a legitimate container backup. The archive contains a manifest.json file configuring a target container named attacker-box and a matching directory structure under attacker-box/rootfs/. To bridge the isolation boundary, the attacker inserts a hardlink record (tarfile.LNKTYPE) into the archive stream.

The hardlink maps a source entry inside attacker-box/rootfs/sensitive to a target file located in an unrelated container directory, such as ../victim-box/rootfs/etc/shadow. Since the extractor does not check if the prefix of the resolved target matches attacker-box, the extraction utility calls os.link(). This creates a direct reference link to the victim container's sensitive file, giving the attacker read and write access to the target file when they interact with attacker-box.

Impact Assessment

The CVSS score of 8.2 (High) reflects the severity of this container containment failure. The vulnerability scores High for Confidentiality and Integrity impacts because an attacker can gain arbitrary read and write access to any file inside other isolated containers managed by the same Termux installation. If the victim container runs databases, local configuration stores, or cryptographic keys, these assets are fully compromised.

The Attack Vector is Local (AV:L) because the victim must be enticed to run the proot-distro restore command on an untrusted archive. This makes social engineering or supply-chain delivery of malicious container configurations the primary threat vectors. The Scope is Changed (S:C) because a vulnerability in the restore engine of one container breaches the integrity and confidentiality boundaries of other tenant environments.

Remediation and Mitigation Guidance

The primary remediation for CVE-2026-54727 is updating proot-distro to version 5.1.6 or later. This release enforces single-container restore boundaries, checks the validity of extraction paths, and restricts hardlinks to their respective container roots. The package can be updated using the Termux package manager.

In environments where immediate updates are not feasible, administrators should refrain from restoring third-party or untrusted container backup archives. System integrators should audit existing backup files by executing command-line inspections. Inspecting the archive contents before executing a restore will reveal if any hardlink or symlink members attempt to traverse out of the target directory structure.

tar -tvf container_backup.tar.gz | grep -E "-> \.\./"

Fix Analysis (4)

Technical Appendix

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

Affected Systems

proot-distro

Affected Versions Detail

Product
Affected Versions
Fixed Version
proot-distro
Termux
< 5.1.65.1.6
AttributeDetail
CWE IDCWE-668
Attack VectorLocal
CVSS Score8.2 (High)
ImpactCross-container read and write access
Exploit StatusProof-of-Concept
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1005Data from Local System
Collection
CWE-668
Exposure of Resource to Wrong Sphere

The software does not prevent the transfer of a resource from a private sphere into an untrusted sphere.

Known Exploits & Detection

GitHub Security AdvisoryDetails the logical flaw concerning hardlink destination validation inside rootless container environments.

References & Sources

  • [1]GitHub Security Advisory (GHSA-7h3g-4w2f-fj2f)
  • [2]proot-distro v5.1.6 Release Notes

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•21 minutes ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
3 views•11 min read
•about 2 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read
•1 day ago•CVE-2026-12411
8.4

CVE-2026-12411: Cross-Guest Volume Hijack via DevLXD Device PATCH in Canonical LXD

CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.

Amit Schendel
Amit Schendel
7 views•10 min read
•1 day ago•CVE-2026-105769
9.3

CVE-2026-105769: Azure Entra ID Token Exfiltration in Kaniko via Unanchored ACR Hostname Regex

CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.

Amit Schendel
Amit Schendel
11 views•11 min read
•1 day ago•CVE-2026-62300
6.5

CVE-2026-62300: Uncontrolled Resource Consumption in filecoin-pin Daemon

CVE-2026-62300 is an uncontrolled resource consumption vulnerability (CWE-400) affecting the daemon mode of filecoin-pin in versions up to and including 1.1.0. The daemon implements the IPFS Pinning Service API to store content on Filecoin's Proof of Data Possession (PDP) service. Due to the absence of rate limits, concurrency caps, execution timeouts, and Directed Acyclic Graph (DAG) traversal limits, an authenticated user—or an unauthenticated user when authentication is disabled—can exhaust system resources via crafted POST /pins requests.

Amit Schendel
Amit Schendel
9 views•11 min read