Portainer CVE-2026-44882
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid Portainer credentials
-
DeliveryAuthenticate to Portainer web UI
-
ExploitCraft request to /api/kubernetes/ proxy targeting restricted endpoint
-
InstallTrigger middleware token validation failure
-
C2Bypass authorization via missing return
-
ExecuteAccess Kubernetes API as Portainer service account
-
ImpactRetrieve secrets or modify cluster resources
-
Step 8Exfiltrate credentials for lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
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 valid authenticated session in Portainer (any user account, including low-privileged users). The attacker must be explicitly denied access to at least one Kubernetes endpoint within Portainer's endpoint management-users who already have legitimate access to all endpoints do not encounter the vulnerable code path because token validation succeeds. The target Portainer instance must be managing one or more Kubernetes environments (Docker-only deployments are not affected). Exploitation is network-based (AV:N) and requires no user interaction beyond the attacker's own session. The attack complexity is low (AC:L)-standard HTTP requests to documented API paths suffice. Blast radius is limited by the Kubernetes RBAC permissions assigned to Portainer's cluster service account; environments where Portainer uses a heavily restricted service account experience reduced impact compared to those granting broad cluster-admin or namespace-admin roles. |
| Impact | The CVSS 3.1 score of 8.1 (High) reflects the vulnerability's significant access control implications: network-exploitable (AV:N) with low complexity (AC:L), requiring only low privileges (PR:L) and no user interaction (UI:N), yielding high confidentiality and integrity impacts with unchanged scope. However, real-world risk is constrained by several factors. First, exploitation requires an existing authenticated Portainer session-this is not a pre-authentication bypass. Second, the attacker's effective permissions on the Kubernetes cluster are limited by the RBAC permissions assigned to Portainer's service account, not elevated to cluster-admin by default. Third, the vulnerability only affects users who already have some level of Portainer access but are denied specific Kubernetes endpoints; organizations using Portainer solely for Docker or granting all users broad Kubernetes access may see minimal additional exposure. The detailed GitHub advisory including exact code location and fix increases risk of copycat exploitation, though no proof-of-concept exploit code is publicly available and the vulnerability is not listed in CISA KEV, suggesting exploitation remains theoretical or limited. EPSS data not provided. Organizations running multi-tenant Portainer installations with granular Kubernetes endpoint access controls face elevated priority; single-tenant or fully-trusted-user deployments have lower urgency. The narrow affected version range (2.33.0-2.33.7 only) and availability of both patch and upgrade paths reduce remediation friction. |
| Exploit ScenarioDerived | An authenticated Portainer user with access to the web UI but explicitly denied access to a production Kubernetes endpoint crafts an HTTP request to Portainer's /api/kubernetes/ proxy path, targeting the restricted cluster. Portainer's outer authentication layer validates the session successfully, passing the request to kubeClientMiddleware. The middleware's secondary token validation fails because the user lacks endpoint permissions, triggering the error path-but execution continues due to the missing return statement. The request is forwarded to the Kubernetes API server using Portainer's service account credentials, bypassing the intended access control. The attacker retrieves sensitive ConfigMaps or Secrets containing database credentials or API keys, then uses those credentials to pivot to backend systems outside the Kubernetes cluster. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Authorization bypass in Portainer 2.33.0 through 2.33.7 allows authenticated users to access Kubernetes cluster resources beyond their assigned permissions due to missing return statement in middleware error handling. Any user with a valid Portainer session can exploit this to read or modify Kubernetes secrets, pods, deployments, and other resources on endpoints they should not access. The flaw affects both Community Edition and Enterprise Edition. Fixed in version 2.33.8 and inherently absent from 2.39.0+. No public exploit code identified at time of analysis, though the single-line code fix and detailed GitHub advisory make reproduction straightforward for authenticated attackers.
RemediationAI
Upgrade to Portainer 2.33.8 (LTS) or 2.39.0+ immediately. The patch consists of a single return statement added after the HTTP 403 response in kubeClientMiddleware, preventing nil pointer dereference and ensuring authorization failures halt request processing. Download from github.com/portainer/portainer/releases/tag/2.33.8 or the official Portainer distribution channels. For organizations unable to patch immediately, implement two compensating controls in parallel: first, remove Kubernetes endpoint access permissions in Portainer for all users who do not require cluster management-users without endpoint access cannot reach the vulnerable middleware path, eliminating the attack surface for those accounts. Second, audit and restrict the Kubernetes RBAC permissions assigned to the service account Portainer uses for cluster proxying; apply least-privilege principles to limit blast radius if the bypass is exploited (this does not prevent the bypass but contains lateral movement). Note that RBAC auditing trades operational flexibility for containment-overly restrictive service account permissions may break legitimate Portainer workflows for authorized users. Neither workaround replaces the patch; they are temporary risk reduction measures only.
Affected Packages
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 platform that provides web-based administration for Docker, Kubernetes, and other container orchestration systems. The vulnerability resides in the Kubernetes API proxy middleware layer (kubeClientMiddleware in api/http/handler/kubernetes/handler.go), which sits between Portainer's authentication layer and the Kubernetes cluster backend. When the middleware calls security.RetrieveTokenData to validate a user's secondary authorization for a specific Kubernetes endpoint, it correctly writes an HTTP 403 response on validation failure but omits the return statement. This control flow error (CWE-863: Incorrect Authorization) causes execution to continue with a nil tokenData pointer, allowing the request to be proxied to the Kubernetes cluster with the service account credentials Portainer holds, effectively bypassing Portainer's role-based access controls. The affected package is identified as pkg:go/github.com_portainer_portainer in the Go ecosystem. The bug has existed since Kubernetes proxy support was introduced but only impacts the 2.33.x LTS branch; the 2.39.0 codebase was refactored to include the fix from initial release.
Know when Kubernetes 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (https://github.com/portainer/portainer).
CVSS VectorVendor: https://github.com/portainer/portainer
DescriptionCVE.org
Summary
Portainer proxies requests to Kubernetes clusters through a middleware layer (kubeClientMiddleware) that validates the requesting user's token before forwarding traffic to the cluster. When security.RetrieveTokenData returned an error, the middleware wrote an HTTP 403 response but was missing a return statement - execution continued into the handler with a nil tokenData value.
The Kubernetes endpoints sit behind Portainer's outer AuthenticatedAccess bouncer, so an attacker requires a valid Portainer session. However, a user whose secondary token validation fails in kubeClientMiddleware - for example a user without permission to access a given Kubernetes endpoint - would have their request forwarded to the cluster anyway, bypassing the authorization check. The same defect was present in both the CE and EE codebases.
Severity
High CWE-863 - Incorrect Authorization
Privilege required is Low - any valid Portainer session is sufficient to reach the middleware. Once the authorization outcome is bypassed, the attacker can read and modify Kubernetes resources on the target endpoint that their role should not permit - confidentiality and integrity impact are both High. No availability impact is introduced directly.
Affected Versions
The missing return statement has been present since Kubernetes proxy support was introduced.
| Branch | First vulnerable | Fixed in |
|---|---|---|
| 2.33.x (LTS) | 2.33.0 | 2.33.8 |
Portainer 2.39.0 and later are not affected - the fix was present from the initial 2.39.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 release.
Workarounds
There is no configuration change that prevents the bypass directly. Administrators who cannot immediately upgrade can reduce exposure by:
- Restricting Kubernetes endpoint access. Remove Portainer access to Kubernetes endpoints for users who do not require it. A user without endpoint access cannot reach
kubeClientMiddleware. - Auditing Kubernetes RBAC. Ensure the service account Portainer uses to proxy cluster requests carries least-privilege RBAC permissions - this limits the blast radius if the bypass is exploited.
Neither of these replaces the fix.
Affected Code
kubeClientMiddleware in api/http/handler/kubernetes/handler.go wrote the error response but did not return, allowing execution to continue with nil tokenData:
// api/http/handler/kubernetes/handler.go (pre-fix - CE and EE)
tokenData, err := security.RetrieveTokenData(r)
if err != nil {
httperror.WriteError(w, http.StatusForbidden,
"permission denied to access the environment", err)
// missing return - tokenData is nil, execution continues
}
// tokenData.ID dereferenced on the next line:
_, ok := handler.KubernetesClientFactory.GetProxyKubeClient(
strconv.Itoa(endpointID), strconv.Itoa(int(tokenData.ID)))The fix adds a single return after the WriteError call in both CE and EE:
// post-fix
if err != nil {
httperror.WriteError(w, http.StatusForbidden,
"permission denied to access the environment", err)
return
}Impact
- Kubernetes authorization bypass. A low-privileged Portainer user can reach Kubernetes API endpoints on environments their role does not permit, with the proxy client of the legitimate session used as the vehicle.
- Cluster resource access. Depending on the service account permissions Portainer holds on the cluster, the attacker can read or modify namespaced resources - including pods, secrets, config maps, and deployments.
- Potential for lateral movement. Kubernetes secrets readable through this path may contain credentials for other services within the cluster or the broader infrastructure.
Timeline
- 2026-02-16: Fix merged to develop.
- 2026-02-25: 2.39.0 released with fix.
- 2026-05-07: 2.33.8 released with backport fix.
Executive ViewAI
Portainer versions 2.33.0-2.33.7 contain an authorization bypass vulnerability that allows any authenticated user to access Kubernetes cluster resources beyond their role-based permissions, including sensitive data like secrets and deployment configurations. This affects both Community and Enterprise deployments and poses a direct risk to organizations using Portainer for multi-tenant or role-segregated Kubernetes access control; an internal user or compromised account could escalate access to critical infrastructure without additional exploitation.
No vendor-released patch identified at time of analysis for versions 2.33.0-2.33.7. Interim mitigations: (1) Restrict network access to Portainer management interfaces to trusted administrative networks only; (2) Implement container orchestration network policies to limit Portainer pod outbound access to only required Kubernetes API endpoints; (3) Enable audit logging on Kubernetes API server and Portainer to detect unauthorized resource access; (4) Reduce active Portainer user sessions and enforce frequent re-authentication; (5) Plan immediate upgrade to 2.33.8 or 2.39.0+ as primary remediation path.
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
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allVendor 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 |
| openSUSE Leap 15.6 | Affected |
GHSA-mgq6-4x29-88r3
NVD
CVE.org
EPSS
VulDB
Exploit-DB