Portainer fixes WebSocket attach and exec flaw that let Standard users open root shells in other users' containers (GHSA-6c57-xm2f-23fg, CVE-2026-134804)
Portainer published advisory GHSA-6c57-xm2f-23fg on 19 November 2026, saying its WebSocket attach and exec endpoints (/api/websocket/attach and /api/websocket/exec) authorised callers only at the environment level and never applied the per-container resource-control check, so any authenticated user with the lowest-privilege Standard user role and access to an environment could get an interactive root session in any container in that environment, including containers owned by other users or teams.
Portainer says container and exec IDs leak through unfiltered event, task and network-inspect responses, that short container ID prefixes can be brute-forced on the attach path, and that the same gap exists over the agent and Edge WebSocket proxies.
It says Portainer's own data is not exposed, but a privileged container or one that mounts the Docker socket would give control of the host. Affected: 2.39.0 to before 2.39.9, 2.40.0 to before 2.45.4, and 3.0.0 to before 3.1.0, for both Community and Business Editions; 3.0.x reached end of life on 19 November and gets no fix.
Portainer rates the issue Moderate and credits 18 researchers who reported it independently, the first on 24 June 2026. Workarounds until upgrading: treat environment access as full container access, separate untrusted tenants into distinct environments, and audit attach and exec requests. (source: Portainer)
The CVE record for CVE-2026-134804, published 22 November 2026, describes the same flaw and version ranges. (source: CVE record)
Neither source says the flaw has been exploited.
- Product
- Portainer Community Edition and Business Edition
- Versions
- 2.39.0 before 2.39.9, 2.40.0 before 2.45.4 (all 2.40.x–2.44.x and 2.45.0–2.45.3), 3.0.0 before 3.1.0; releases before 2.39.0 are end of life (Portainer)
- CVSS
- Rated Moderate by Portainer (CVSS 4.0 vector published in the advisory)
- Exploited in Australia?
- unknown
- Patch to
- 2.45.4, 2.39.9 or 3.1.0 (Portainer). Portainer advises 2.39.x users to move to 2.45.4 or later, 3.0.x users to 3.1.0, and notes Community Edition gets updates only on the 2.45 line.
