All vulnerabilities

Servers and applications

GHSA-83xv-v98x-cc83

Stack list exposes Public stacks and their environment variables to users without access to the environment

Severity
Medium 6.0
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
19 Nov 2026
Fixed in
2.40.0, 2.45.4, 3.1.0
Weakness
Information exposure (CWE-200)Improper access control (CWE-284)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Portainer lets users list the stacks they are allowed to see through the stack list endpoint, GET /api/stacks. For non-administrators the handler filtered the list by each stack's access control only and never checked whether the caller had access to the environment the stack is deployed on.

As a result, any authenticated user could receive every stack whose access control is set to Public, on every environment in the instance, including environments the user has no access to. The response contains the full stack object, including its environment variables, project path, Git configuration and environment id. The optional environment filter on the same endpoint could be used to target a specific environment.

Reading the same stack directly was already denied correctly. Only the list endpoint was affected, and only stacks whose access control is Public were exposed.

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

Workarounds

Administrators who cannot immediately upgrade, including all users on 2.39.x, can reduce exposure by:

  • Do not use the Public access control on stacks. Switch affected stacks to team or user access control. Public stacks are the only ones exposed, so this removes the exposure, at the cost of users no longer seeing those stacks without an explicit grant.
  • Rotate secrets stored in the environment variables of Public stacks.
Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · github:portainer/portainer
  • Every version before 2.40.0
  • From 2.40.0 before 2.45.4
  • From 3.0.0 before 3.1.0

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