All vulnerabilities

Servers and applications

CVE-2026-44882

Kubernetes middleware continues after token validation failure, bypassing endpoint authorization

Severity
High 8.1
Published
10 May 2026
Last changed
21 Jul 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.33.8
Exploit chance
0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-mgq6-4x29-88r3
Sources
NVD, Project advisories (GitHub)

Description

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.

CWE-863 — Incorrect Authorization

From portainer/portainer's security advisory. Shortened; the full text is there.

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.

Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · cpe:a:portainer:portainer
  • From 2.33.0 before 2.33.8
PortainerServers and applications · github:portainer/portainer
  • From 2.33.0 before 2.33.8

About Portainer

Open source software to manage Docker, docker swarm and Kubernetes

From Wikidata, CC0 1.0.
Docker Hub pulls
1,590,442,292Docker Hub, 15 Nov 2026
GitHub stars
38,831GitHub, 15 Nov 2026
Forks
2,940GitHub, 15 Nov 2026
Latest release
2.45.3GitHub, 15 Nov 2026
Released
21 Oct 2026GitHub
License
ZlibGitHub
First published on GitHub
19 May 2016GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-44882
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-44882
  • GitHub Advisory Database https://github.com/advisories/GHSA-mgq6-4x29-88r3
  • github.com https://github.com/portainer/portainer/security/advisories/GHSA-mgq6-4x29-88r3