Skip to main content

Portainer CVE-2026-44849

CRITICAL
Missing Authorization (CWE-862)
2026-05-14 https://github.com/portainer/portainer GHSA-5fxq-qcf3-244w
9.4
CVSS 4.0 · Vendor: https://github.com/portainer/portainer
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as non-admin Portainer user
  2. Delivery
    Reach proxied Swarm endpoint via RBAC grant
  3. Exploit
    POST /services/create or /services/{id}/update with CapabilityAdd ALL plus volume-driver bind of /
  4. Install
    Partial-struct parser drops capability/driver fields
  5. C2
    Docker daemon schedules privileged service on Swarm node
  6. Execute
    Exec into container and chroot /host
  7. Impact
    Read manager secrets and pivot to root-equivalent host access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires (a) a Portainer deployment with at least one Docker Swarm-enabled endpoint, (b) a non-admin account (Standard User role or any role) that has been explicitly granted access to that Swarm endpoint via Portainer RBAC, and (c) the administrator must have configured one or more of AllowContainerCapabilitiesForRegularUsers, AllowSysctlSettingForRegularUsers, AllowSecurityOptForRegularUsers, or AllowBindMountsForRegularUsers to restrict standard users - without those restrictions there is no policy to bypass. The attacker authenticates to the Portainer web/API and reaches the proxied Swarm endpoint over the network; no victim user interaction is needed (UI:N). Limiting factors: admin accounts and users who lack Swarm endpoint access are out of scope, standalone Docker (non-Swarm) endpoints are not affected by the service-API path, and the secondary /volumes/create variant additionally requires the local volume driver to be available on the target endpoint.

Impact

CVSS 4.0 base score is 9.4 with vector AV:N/AC:L/AT:N/PR:L/UI:N indicating network-reachable, low-complexity, low-privilege exploitation with full VC/VI/VA:H and subsequent-system SC/SI/SA:H - accurately reflecting that container escape pivots to the underlying Swarm manager host. Exploitation status is no public exploit identified at time of analysis (not in CISA KEV, no POC flag set), though the advisory itself documents concrete payloads (CapabilityAdd:['ALL'] plus bind mount of /, chroot /host) that lower the barrier substantially. EPSS data is not provided in the input so probabilistic exploitation forecasting is unknown. Real-world priority should be HIGH for any deployment that grants non-admin users access to a Swarm endpoint and relies on EndpointSecuritySettings as a security boundary; the PR:L requirement and the prerequisite that the operator have actively configured restrictions (otherwise there is nothing to bypass) limit applicability to organizations using Portainer for multi-tenant or least-privilege Swarm administration. One caveat to flag explicitly: CVSS vector encodes PR:L (low privileges required), which is consistent with the description's 'authenticated non-admin Portainer user' - these signals agree.

Exploit ScenarioDerived

An authenticated Portainer Standard User who has been granted access to a Swarm endpoint submits POST /services/create with CapabilityAdd:['ALL'] and a Mount of Type:'volume' whose VolumeOptions.DriverConfig.Options carries {type:'none', o:'bind', device:'/'}; the partial-struct parser discards the capability and driver-options fields, and the Docker daemon materializes a root-of-host bind. The attacker scales the service to one replica, execs in, runs chroot /host, and gains root-equivalent access to the Swarm manager filesystem - reading /var/run/docker.sock, SSH keys, or Portainer's own database to pivot further. Alternatively, the user creates a benign service that passes the ownership check and then issues POST /services/{id}/update with the same elevated payload, exploiting the fact that the update route performs zero EndpointSecuritySettings inspection.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – May 28, 2026

Authorization bypass in Portainer's Docker Swarm proxy allows authenticated non-admin users with endpoint access to circumvent EndpointSecuritySettings restrictions configured by administrators. Affected versions include 2.33.0-2.33.7, 2.39.0-2.39.1, and 2.40.x, with fixes in 2.33.8, 2.39.2, and 2.41.0 respectively. No public exploit identified at time of analysis, but the GHSA-5fxq-qcf3-244w advisory provides detailed payload examples that effectively serve as a proof-of-concept blueprint enabling escape to root-equivalent access on Swarm manager hosts.

Earlier versions of this analysis (2)
v2 May 28, 2026 - 22:28 cvss changed CVSS 9.4

Privilege escalation in Portainer's Docker Swarm endpoints allows authenticated non-admin users to bypass administrator-configured EndpointSecuritySettings restrictions and gain root-equivalent access to Swarm manager hosts. The flaw affects all Portainer releases from 2.33.0 through the fixed branches (2.33.8 LTS, 2.39.2 LTS, 2.41.0 STS) because the Swarm service create/update proxy paths and the /volumes/create endpoint do not validate capabilities, sysctls, security-opt, or bind-mount fields. No public exploit identified at time of analysis, but the advisory itself documents a complete weaponized chain (CapabilityAdd:[ALL] + bind mount of /).

v1 May 14, 2026 - 17:31

Authenticated non-admin users with Docker Swarm endpoint access can bypass Portainer's endpoint security restrictions to launch privileged containers with elevated capabilities, disabled security confinement, and arbitrary host filesystem bind mounts. The vulnerability affects Portainer versions 2.33.0–2.33.7, 2.39.0–2.39.1, and 2.40.0–2.40.x across all supported branches. Incomplete enforcement of seven administrator-configured security controls (privileged mode, host PID namespace, device mapping, capabilities, sysctls, Seccomp/AppArmor, bind mounts) on Swarm service creation and update APIs allows attackers to gain root-equivalent host access despite restrictive RBAC policies. Fixes released in versions 2.33.8, 2.39.2, and 2.41.0. No public exploit code identified at time of analysis, though detailed vulnerability disclosure with proof-of-concept attack chains was published by researchers route2shell and JohannesLks.

RemediationAI

Apply the vendor-released patch matching your branch: upgrade to Portainer 2.33.8 LTS (https://github.com/portainer/portainer/releases/tag/2.33.8), 2.39.2 LTS (https://github.com/portainer/portainer/releases/tag/2.39.2), or 2.41.0 STS (https://github.com/portainer/portainer/releases/tag/2.41.0); users on releases older than 2.33.0 must migrate to a supported LTS branch as those are end-of-life. Until the upgrade is deployed, the highest-impact workaround is to temporarily revoke Swarm endpoint access for non-admin users via Portainer RBAC, which removes the attack surface entirely with no impact on administrator workflows but blocks delegated Swarm operations. As partial mitigations, segregate manager and worker nodes with placement constraints so user-submitted services never schedule on managers (limits blast radius but does not prevent the bypass on worker hosts), and add a Docker daemon-side allowlist that rejects local-driver volumes with type:none plus o:bind to close the volume-driver variant (this will break any legitimate local-bind volumes in the same environment). Refer to the GHSA advisory at https://github.com/portainer/portainer/security/advisories/GHSA-5fxq-qcf3-244w for full payload patterns to feed into detection rules.

Affected Packages

go github.com/portainer/portainer fix: 2.33.8, 2.39.2, 2.41.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Portainer is a container management UI that proxies the Docker Engine and Docker Swarm APIs while layering its own RBAC and EndpointSecuritySettings policy (AllowContainerCapabilitiesForRegularUsers, AllowSysctlSettingForRegularUsers, AllowSecurityOptForRegularUsers, AllowBindMountsForRegularUsers). The root cause is CWE-862 (Missing Authorization): the Swarm service proxy in api/http/proxy/factory/docker/services.go declares only a PartialService struct with Mounts[].Type, so json.Unmarshal silently drops CapabilityAdd, CapabilityDrop, Sysctls, and Privileges before the policy check runs, while POST /services/{id}/update routes to restrictedResourceOperation which never invokes fetchEndpointSecuritySettings() at all. A secondary bypass abuses the Docker local volume driver: a Type:'volume' mount whose VolumeOptions.DriverConfig.Options carries {type:'none', o:'bind', device:'<path>'} is treated by dockerd as a bind-equivalent mount, and the same payload is also accepted at POST /volumes/create which never had a bind-mount check on any branch. The affected package is pkg:go/github.com/portainer/portainer across its 2.33.x LTS, 2.39.x LTS, and 2.40.x STS branches.

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 (https://github.com/portainer/portainer) PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE HIGH

Primary rating from Vendor (https://github.com/portainer/portainer).

CVSS VectorVendor: https://github.com/portainer/portainer

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
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Analysis Updated
May 28, 2026 - 22:28 vuln.today
v3 - CVSS changed
Analysis Updated
May 28, 2026 - 22:28 vuln.today
v2 - CVSS changed
CVSS changed
May 28, 2026 - 22:22 NVD
9.4 (CRITICAL)
CVE Published
May 14, 2026 - 16:33 nvd
CRITICAL

DescriptionCVE.org

Summary

Portainer enforces seven EndpointSecuritySettings restrictions that administrators configure to restrict the container configurations non-admin users can launch: privileged mode, host PID namespace, device mapping, capabilities, sysctls, security-opt (Seccomp / AppArmor), and bind mounts.

The vulnerability is exposed when a non-admin Portainer user (Standard User role, or any role granted endpoint-level access) has been given access to a Docker Swarm endpoint via Portainer RBAC. Admins and users without Swarm endpoint access are not affected.

These restrictions are enforced on the standard container creation path, but several of them are not applied on the Docker Swarm service API:

  • POST /services/create - 1 of 7 checks applied. CapabilityAdd, CapabilityDrop, Sysctls, and Privileges (Seccomp / AppArmor) are not parsed from the request body and are forwarded to the Docker daemon without validation.
  • POST /services/{id}/update - 0 of 7 checks applied. The route dispatches to the generic restrictedResourceOperation, which validates RBAC ownership but does not inspect the request body or call fetchEndpointSecuritySettings().

The EndpointSecuritySettings checks apply when the administrator has configured any of AllowContainerCapabilitiesForRegularUsers, AllowSysctlSettingForRegularUsers, AllowSecurityOptForRegularUsers, or AllowBindMountsForRegularUsers to restrict standard users.

A regular user with access to a Docker Swarm endpoint can:

  • Create a service with CapabilityAdd: ["SYS_ADMIN", "NET_ADMIN", "SYS_PTRACE", …] or Privileges.Seccomp.Mode: "unconfined".
  • Create a benign service that passes ownership checks, then update it to add CapabilityAdd: ["ALL"] plus a bind mount of /, scale to one replica, and access the host filesystem from the running container (e.g. via chroot /host).

In addition, the partial Mounts[] struct used by the bind-mount check inspects only the top-level Type field. A mount with Type: "volume" and VolumeOptions.DriverConfig.Options: {type: "none", o: "bind", device: "<host path>"} is forwarded to the Docker daemon unchanged; the local volume driver then materialises it as a bind-equivalent mount, bypassing AllowBindMountsForRegularUsers. The same field path is accepted by the standalone POST /volumes/create endpoint, which never had any AllowBindMountsForRegularUsers check on any branch.

This undermines the administrator's configured security policy on Swarm-enabled endpoints.

Affected Versions

The vulnerability exists in every Portainer release with Docker Swarm support - the service-creation path has never checked CapabilityAdd, CapabilityDrop, Sysctls, or Privileges, and the service-update path has never performed any EndpointSecuritySettings validation. The VolumeOptions.DriverConfig field has never been parsed by the partial service struct on any branch, so the volume-driver-bind variant (service create/update and direct /volumes/create) shares the same affected range.

Fixes are included in the next release of each supported branch:

BranchFirst vulnerableFixed in
2.33.x (LTS)2.33.02.33.8
2.39.x (LTS)2.39.02.39.2
2.40.x (STS)2.40.02.41.0

Portainer LTS branches receive fixes for 6 months plus a 3-month overlap after the next LTS ships. STS releases are supported only until the next STS ships - the 2.40.x STS line ends with the 2.41.0 release. All releases prior to 2.33.0 are end-of-life and will not receive a fix; users on EOL versions should upgrade to a supported LTS branch.

Workarounds

Administrators who cannot immediately upgrade can reduce exposure with the following measures. None of these replaces the fix.

  • Temporarily revoke Swarm endpoint access for non-admin users via Portainer RBAC until the patched release is deployed. This eliminates the attack surface without service disruption for administrators.
  • Segregate manager and worker nodes with placement constraints so user workloads do not run on manager nodes. This limits the exposure of the Swarm control plane if the bypass is exploited against a worker.
  • Block creation of local-driver volumes that use type: none / o: bind on untrusted endpoints via a daemon-side allowlist. This closes the volume-driver-bind variant until the patched release is deployed.

Affected Code

Service creation - only Mounts inspected (1/7)

go
// api/http/proxy/factory/docker/services.go (pre-fix)

type PartialService struct {
    TaskTemplate struct {
        ContainerSpec struct {
            Mounts []struct {
                Type string
            }
        }
    }
}

CapabilityAdd, CapabilityDrop, Sysctls, and Privileges are not declared in the struct, so json.Unmarshal does not include them in the validated view. The request body is then forwarded to the Docker daemon without those fields being checked.

Service update - no inspection (0/7)

go
// api/http/proxy/factory/docker/transport.go (pre-fix)

if match, _ := path.Match("/services/*/*", requestPath); match {
    serviceID := path.Base(path.Dir(requestPath))
    // ... no body inspection, no call to fetchEndpointSecuritySettings ...
    return transport.restrictedResourceOperation(
        request, serviceID, serviceID,
        portainer.ServiceResourceControl, false,
    )
}

fetchEndpointSecuritySettings() is called in three places in the codebase: container creation, service creation (bind-mount check only), and volume browsing. Service update is not among them.

Bind-mount check - driver options ignored

go
// api/http/proxy/factory/docker/services.go (pre-fix - partial Mounts struct)

Mounts []struct {
    Type string   // only this field was read
}

Because VolumeOptions.DriverConfig.Options is not declared in the partial struct, a mount of Type: "volume" passes the Type != "bind" check and is forwarded to the daemon. The local volume driver treats {type: "none", o: "bind", device: "<host path>"} as a bind-equivalent mount, so the check is bypassed.

The fix extends the partial struct to carry VolumeOptions.DriverConfig.Options map[string]string, rejects service create/update requests where that map declares a bind-style driver, and adds a new CheckVolumeBodyRestrictions invocation on POST /volumes/create (which previously had no AllowBindMountsForRegularUsers check on any branch).

Impact

An authenticated, non-admin Portainer user with access to any Docker Swarm-enabled endpoint can configure a service with:

  • Elevated Linux capabilities including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_SYS_PTRACE, or ALL - not restricted by AllowContainerCapabilitiesForRegularUsers.
  • Disabled syscall filtering via Privileges.Seccomp.Mode: "unconfined" - not restricted by AllowSecurityOptForRegularUsers.
  • Disabled AppArmor confinement via Privileges.AppArmor.Mode: "disabled" - not restricted by AllowSecurityOptForRegularUsers.
  • Arbitrary sysctl values inside the container namespace - not restricted by AllowSysctlSettingForRegularUsers.
  • Bind mounts of any host path, including /, /var/run/docker.sock, SSH keys, or Portainer's own database - not restricted by AllowBindMountsForRegularUsers.
  • Bind-mount-equivalent host filesystem access via volume driver options - a Type: "volume" mount whose VolumeOptions.DriverConfig.Options describe a local-driver bind, or a direct POST /volumes/create with the same payload, yields the same capability as a direct bind and is not restricted by AllowBindMountsForRegularUsers.

In combination (e.g. CapabilityAdd:["ALL"] + bind mount of /), this gives a user access equivalent to root on the Swarm manager host from a restricted account, overriding the administrator's security policy.

Timeline

  • 2026-03-12 - route2shell privately discloses the volume-driver local-bind variant.
  • 2026-04-05 - JohannesLks disclosure of the Swarm service create/update bypass
  • 2026-04-18 - Fix merged to develop.
  • 2026-04-29 - 2.41.0 released.
  • 2026-05-07 - 2.39.2-LTS and 2.33.8-LTS released.

Credit

  • route2shell - disclosure of the volume-driver local-bind variant on both Swarm service creation/update and the standalone /volumes/create endpoint.
  • JohannesLks - independent disclosure of the Swarm service create/update bypass

Executive ViewAI

Why It Matters

Portainer Docker Swarm proxy (versions 2.33.0-2.40.x) contains a critical authorization bypass that allows authenticated users with limited endpoint access to escalate privileges to root-equivalent level on Swarm manager infrastructure, directly circumventing administrator-configured security controls. Organizations using Portainer to manage containerized environments face immediate risk of privilege escalation and infrastructure access loss. Published security advisories contain detailed exploitation guidance, making immediate patching essential.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:go/github.com_portainer_portainer
pkg:go/github.com_portainer_portainer
pkg:go/github.com_portainer_portainer

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

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

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