All vulnerabilities

Servers and applications

GHSA-hjgg-rj83-gwfx

Swarm service force-update lets users restart services they cannot access

Severity
Medium 5.3
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
Missing authorization (CWE-862)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data · Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Portainer lets administrators restrict Docker resources, including Swarm services, to particular users and teams through resource controls. A non-administrator who has access to an environment can normally act only on the services a resource control makes accessible to them, and the Docker API proxy enforces this on every service request.

Portainer also exposes a dedicated endpoint, PUT /api/endpoints/{id}/forceupdateservice, that force-updates a Swarm service and optionally re-pulls its image. This endpoint checked only that the caller had access to the environment. It never checked the resource control of the service named in the request, so any authenticated user with access to a Swarm environment could force-update a service they are denied access to.

Portainer operates a shared-responsibility security model: administrators decide who may access each environment and each resource, and Portainer is responsible for enforcing those decisions as configured.

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

Workarounds

Administrators who cannot immediately upgrade can reduce exposure by:

  • Limit Standard-user access to Swarm environments. Remove environment access from users and teams who do not need it. The attack needs access to the environment that runs the service.
  • Use a role without service update rights (Business Edition). The Helpdesk and Read-only User roles cannot call this endpoint.

Docker standalone environments are not affected, as the endpoint acts only on Swarm services. None of these replace the fix.

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

Affected software

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