CVE-2026-134804 in Portainerinfo

Summary

by MITRE • 11/22/2026

Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 contains an authorization bypass vulnerability that allows Standard users to access other users' containers via the WebSocket attach and exec endpoints. Attackers with shared environment access can use leaked container or exec IDs to hijack sessions over /api/websocket/attach or /api/websocket/exec, gaining interactive root shells.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/22/2026

The vulnerability identified in Portainer versions 2.39.0 through 2.39.8, 2.40.0 through 2.45.3, and 3.0.0 through 3.1.0 represents a critical authorization bypass within the container management platform's WebSocket infrastructure. This flaw specifically impacts Standard users who possess limited privileges but can leverage improper access control checks to escalate their capabilities significantly. The core technical issue lies in how the application validates session tokens against specific resource identifiers when handling attach and exec operations via WebSocket endpoints. Instead of strictly binding the user's permissions to the target container or execution context, the system allows a valid authentication token from one environment to be reused for interacting with containers belonging to other users within the same shared infrastructure. This architectural weakness effectively neutralizes the isolation boundaries intended by Portainer’s role-based access control model, allowing lateral movement across tenant boundaries that should remain strictly segregated.

From an operational perspective, this vulnerability enables attackers who have obtained Standard user credentials or compromised a low-privilege account to hijack active sessions for other users' containers. By exploiting leaked container IDs or execution identifiers, which may be exposed through various means such as browser history, network logs, or cross-site scripting vulnerabilities in associated web interfaces, an attacker can connect directly to the /api/websocket/attach or /api/websocket/exec endpoints. Once connected, the attacker gains interactive access to the target container's process space with root-level privileges. This is particularly dangerous because it provides immediate command-line execution capabilities inside the host environment of the compromised containers, bypassing any application-layer security controls that might otherwise restrict user actions. The ability to execute commands as root within a container often translates to full compromise of the underlying node if escape techniques are employed, leading to potential control over the entire Kubernetes cluster or Docker swarm depending on the deployment architecture.

The impact extends beyond simple unauthorized access; it facilitates persistent backdooring and data exfiltration from multiple tenants simultaneously using a single compromised account. Attackers can install malicious binaries, modify configuration files, or intercept network traffic within these hijacked containers without detection by standard audit logs that only record successful authenticated actions under the original user's identity. This undermines trust in multi-tenant environments where Portainer is commonly deployed to manage distributed container workloads across different departments or external clients. The lack of proper resource ownership verification during WebSocket handshake and subsequent command execution creates a significant security gap that violates fundamental principles of least privilege and separation of duties essential for secure cloud-native operations.

To mitigate this risk, organizations must immediately upgrade Portainer to version 2.39.9, 2.45.4, or later where the authorization logic has been corrected to strictly validate user permissions against specific container ownership before allowing WebSocket attachment or execution requests. In environments where immediate patching is not feasible, network-level controls such as Web Application Firewalls can be configured to restrict access to websocket endpoints based on IP reputation and behavioral anomalies. Additionally, implementing strict monitoring for unusual patterns in API calls involving attach and exec operations can help detect exploitation attempts in real-time. It is also critical to enforce strong credential management practices and rotate any potentially exposed tokens or session IDs promptly. Regular security audits focusing on role-based access control configurations ensure that Standard users are not granted excessive permissions inadvertently, thereby reducing the attack surface available for such bypass techniques.

This vulnerability aligns with CWE-284 Improper Access Control, as it involves a failure to enforce proper restrictions on an authenticated user's actions. It also maps to MITRE ATT&CK technique T1078 Valid Accounts, where attackers leverage legitimate credentials to gain access, and potentially T1659 Weak or Obfuscated Execution Arguments if the hijacked sessions are used for further exploitation steps within the container environment. Understanding these mappings helps security teams prioritize remediation efforts according to industry-standard frameworks and ensures that defensive measures address both the immediate technical flaw and its broader implications for organizational security posture.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/22/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!