Skip to main content

Portainer CVE-2026-134804

| EUVDEUVD-2026-132859 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-11-22 VulnCheck GHSA-88pc-g85c-cfjr
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Standard user
  2. Delivery
    Harvest leaked container or exec IDs
  3. Exploit
    Open /api/websocket/attach or /api/websocket/exec
  4. Execution
    Obtain interactive root shell in foreign container
  5. Impact
    Read/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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

portainer 3.0.0 <3.1.0
portainer 2.39.0 <2.39.9
portainer 2.40.0 <2.45.4

Affected Packages

euvd portainer fix: 2.39.9, 2.45.4, 3.1.0

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 49% exploitable
Prevalence
High
widely deployed Docker/container management UI across enterprise and homelab
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy