All vulnerabilities

Servers and applications

GHSA-26fg-hrxq-h6v4

Compose `profiles` and `include` bypass the environment security settings for non-administrators

Severity
High 8.7
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
19 Nov 2026
Fixed in
2.39.9, 2.45.4, 3.1.0
Weakness
Improper access control (CWE-284)Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Portainer lets non-administrator (Standard) users deploy Docker Compose stacks to an environment. A set of per-environment security settings, shown in the interface as Hide … for non-administrators — covering bind mounts, privileged mode, host namespaces, device mappings, sysctls, security options and container capabilities — restricts what those users may put in a stack, and the stack validator enforces them, together with the outbound-URL (SSRF) check, before deployment. The validator loads the Compose file separately from the component that later deploys it, and any authenticated user with stack-management access to a Docker environment can exploit differences between the two loads so that a service is deployed without ever being checked.

Portainer operates a shared-responsibility security model: administrators decide how permissive each environment's security settings are, and Portainer is responsible for enforcing those settings as configured.

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

Workarounds

Administrators who cannot immediately upgrade can reduce exposure by:

  • Disable stack management for non-administrators. Enable "Hide the use of Stacks for non-administrators" on each Docker environment. This is enforced server-side, but Standard users can no longer deploy or manage stacks.
  • Limit Standard-user access to Docker environments. Remove environment access from users who do not need it. The attack needs stack management rights on a Docker environment.
  • Audit existing stacks.
Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · github:portainer/portainer
  • From 2.39.1 before 2.39.9
  • 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