Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Standard user
-
DeliveryHarvest leaked container or exec IDs
-
ExploitOpen /api/websocket/attach or /api/websocket/exec
-
ExecutionObtain interactive root shell in foreign container
-
ImpactRead/modify tenant data or pivot to host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires an authenticated Portainer Standard user (the lowest-privilege role) who has been granted access to an environment that also hosts containers owned by other users or teams - i.e. a multi-tenant/shared environment co-locating untrusting tenants. The attacker must supply a target container ID (on /api/websocket/attach) or an exec ID (on /api/websocket/exec); these are obtainable because they leak through unfiltered event, task, and network-inspect responses, and the attach path validates the container ID only as hexadecimal with no minimum length, permitting short-prefix enumeration since Docker resolves ID prefixes. The same gap is reachable over the agent and Edge WebSocket proxies, extending it to remote and Edge-managed environments. LIMITING factors: a valid Portainer account with environment access is mandatory (not unauthenticated); the attack only crosses a trust boundary when untrusting tenants share one environment (separating them into distinct environments eliminates foreign targets); and escalation beyond the single compromised container to the Docker host requires that the target container be privileged or mount /var/run/docker.sock. Affected and must be upgraded: 2.39.0-2.39.8 (fix 2.39.9), 2.40.0-2.45.3 (fix 2.45.4), 3.0.0-3.0.x (fix 3.1.0); the vendor states upgrading is the only complete fix and the listed workarounds (treat environment access as full container access, separate untrusted tenants into distinct environments, audit attach/exec activity) only reduce exposure. |
| Impact | The input CVSS 4.0 score is 8.7 (High) with vector AV:N/AC:L/AT:N/PR:L/UI:N - network-reachable, low attack complexity, no attack requirements, no user interaction, mapping full High impact to the vulnerable system (VC:H/VI:H/VA:H) and None to subsequent systems (SC:N/SI:N/SA:N). The decisive moderating signal is PR:L: because the CVSS vector contains PR:L, this is an authenticated flaw requiring the lowest-privilege Standard user role with access to a shared environment - it is NOT a remote-unauthenticated internet-wide issue. No EPSS score is provided in the input, so exploitation probability cannot be quantified. The CVE is not listed in CISA KEV, so there is no public exploit identified at time of analysis as actively exploited; however, the GHSA advisory documents the technique in full and records eighteen researchers who independently discovered the bug, which is a strong signal of low discovery difficulty and easy reproduction even without packaged exploit code. The vuln.today Decision label is this_week (not act_now/emergency), consistent with a serious but authentication-gated issue rather than an unauthenticated internet emergency. Net assessment: this is a real priority for any multi-tenant Portainer deployment where mutually-untrusting users or teams share a single environment, since environment access silently becomes full root-shell access to every container; it is a much lower priority for single-tenant or single-operator deployments where there are no foreign containers to reach. One nuance to verify: the official 4.0 vector scores subsequent-system impact as None (treating the managed container as the vulnerable system), but the advisory notes that a privileged container or one mounting /var/run/docker.sock lets the session escalate to the Docker host and all other containers - in those deployments real-world impact exceeds what the SC:N/SI:N/SA:N metrics convey. |
| Exploit ScenarioDerived | A low-privilege Standard user with a valid Portainer account and access to a multi-tenant environment harvests a container or exec ID from unfiltered event, task, or network-inspect responses (or brute-forces a short hex container-ID prefix, which the attach path accepts with no length floor), then opens a WebSocket to /api/websocket/attach or /api/websocket/exec. Because the handlers authorize only at the environment level and never apply the per-container resource-control check, the attacker receives an interactive root shell inside another tenant's container, reading and modifying that workload's secrets and data. No public packaged exploit is identified, but the advisory describes the full technique and eighteen researchers reproduced it independently, indicating it is easy to replicate. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Portainer Community and Business Edition deployments from 2.39.0 onward allow any authenticated Standard user to open an interactive root shell in containers they do not own: the WebSocket attach and exec handlers verify only that the caller may operate on the environment and never apply the per-container resource-ownership (ResourceControl) check that the equivalent Docker HTTP proxy routes enforce. Affected branches are 2.39.0 through 2.39.8, 2.40.0 through 2.45.3, and 3.0.0 through 3.0.x, and the same gap is reachable through the agent and Edge WebSocket proxies that forward the hijacked connection under the same environment-only authorisation. No public exploit code was identified at the time of analysis; the prerequisite is a low-privilege Standard user account with access to a shared, multi-tenant environment, where container and exec IDs leak through unfiltered event, task and network-inspect responses and short container-ID prefixes can be enumerated because Docker resolves ID prefixes.
RemediationAI
Vendor-released patch: upgrade to 2.39.9 (2.39.x LTS), 2.45.4 (2.45.x LTS, which also covers users on 2.40.0-2.44.x short-term releases and 2.45.0-2.45.3), or 3.1.0 (3.x). The published commits are https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857 and https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f, and the advisory is https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg. Releases before 2.39.0 and the 3.0.x branch (end of life 2026-11-19) receive no fix and must be moved to a supported release. The vendor states that upgrading is the only complete fix and offers three exposure-reduction measures for administrators who cannot patch immediately: treat environment access as full container access and grant environment membership only to users trusted with every container in it (this removes the multi-tenant assumption many deployments rely on); separate mutually untrusting users or teams into distinct environments behind separate endpoints so no foreign containers exist to reach (costs additional endpoints and management overhead); and audit access logs for WebSocket attach and exec requests whose container or exec IDs the caller should not own, and for requests carrying short or prefix container IDs (detective only, and only useful where logging is complete). Remediation for this issue belongs in the current week's patch cycle under the assigned priority.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Portainer exposes interactive container streams over Go handlers at GET /api/websocket/attach (stdin/stdout/stderr to a running container) and GET /api/websocket/exec (starts an exec session), implemented in api/http/handler/websocket/attach.go and exec.go. Pre-fix, both handlers call only requestBouncer.AuthorizedEndpointOperation for environment-level authorisation and then hijack the raw connection to the Docker socket, never invoking the per-container restrictedResourceOperation logic used on the HTTP proxy path (api/http/proxy/factory/docker/transport.go). This is CWE-639 (authorization bypass through a user-controlled key), also characterised by the vendor as CWE-285: the identifier is validated only as a hexadecimal string with no minimum length and is passed straight to POST /containers/<id>/attach or POST /exec/<id>/start, so the object being acted on is never checked against the caller's ownership, and on the exec path the parent container behind the exec object is never consulted at all. The supplied fix adds ResolveAccessibleContainerID on the attach path (resolving a possibly-short prefix, then enforcing direct, service and stack inherited resource controls and forwarding the resolved full ID) and CanAccessExecContainer on the exec path (inspecting the exec object for its parent container before enforcing the same controls), returning 403 before the WebSocket upgrade or the agent/Edge proxy hand-off; containers carrying no resource control become administrator-only, consistent with the Docker proxy routes. Per the vendor advisory, the impact lands on subsequent systems (the managed workloads) and not on Portainer's own data, matching the CVSS 4.0 vector's SC:N/SI:N/SA:N, and escalation to the Docker host depends on the target container being privileged or mounting /var/run/docker.sock.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Authenticated low-privilege Standard user over the network, no interaction, yields full read/write/disrupt (root shell) of a foreign container, so C/I/A:H; scope Unchanged as Portainer governs those containers, though privileged-container deployments could extend to the host.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Technical POC Analysis
CWE-639 (Authorization Bypass Through User-Controlled Key), also scored as CWE-285 by the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-134804 is a high-severity (CVSS 8.7) flaw in Portainer Community and Business Edition (versions 2.39.0+) that allows any authenticated Standard user to gain root shell access to containers they do not own. This undermines container isolation and multi-tenancy, enabling lateral movement and data compromise within shared environments. Leadership should prioritize remediation, especially in multi-tenant deployments where low-privilege accounts are common.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-132859
GHSA-88pc-g85c-cfjr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB