Skip to content
OpenAdvisories
High · 8.1 CVE-2026-44882 EUVD-2026-33060GHSA-mgq6-4x29-88r3GO-2026-5505

Portainer: Kubernetes middleware continues after token validation failure, bypassing endpoint authorization

Published May 28, 2026 · Updated May 30, 2026 · Assigned by GitHub_M

Description

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to before 2.33., 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. This vulnerability is fixed in 2.33.8.

Affected products

VendorProductAffectedFixed
portainer portainer >= 2.33.0, < 2.33.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/portainer/portainer >= 2.33.0, < 2.33.8 2.33.8 GHSA-mgq6-4x29-88r3
Go github.com/portainer/portainer all versions — GO-2026-5505

Advisories 1

References