Skip to main content

Portainer CVE-2026-44882

HIGH
Incorrect Authorization (CWE-863)
2026-05-14 https://github.com/portainer/portainer GHSA-mgq6-4x29-88r3
8.1
CVSS 3.1 · Vendor: https://github.com/portainer/portainer
View

Attack ChainAIDerived

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

  1. Recon
    Obtain valid Portainer credentials
  2. Delivery
    Authenticate to Portainer web UI
  3. Exploit
    Craft request to /api/kubernetes/ proxy targeting restricted endpoint
  4. Install
    Trigger middleware token validation failure
  5. C2
    Bypass authorization via missing return
  6. Execute
    Access Kubernetes API as Portainer service account
  7. Impact
    Retrieve secrets or modify cluster resources
  8. Step 8
    Exfiltrate 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.

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

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

Alert me

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

go github.com/portainer/portainer fix: 2.33.8

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

Vendor (https://github.com/portainer/portainer) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
SUSE HIGH

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

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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.

BranchFirst vulnerableFixed in
2.33.x (LTS)2.33.02.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:

go
// 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:

go
// 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 87% 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
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
CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

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

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

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