Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 Authorization Bypass via WebSocket Attach and Exec
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 contains an authorization bypass vulnerability that allows Standard users to access other users' containers via the WebSocket attach and exec endpoints. Attackers with shared environment access can use leaked container or exec IDs to hijack sessions over /api/websocket/attach or /api/websocket/exec, gaining interactive root shells.
| Product | Versions |
|---|---|
| Portainer Portainer | 2.39.0 to before 2.39.9 Affected2.40.0 to before 2.45.4 Affected3.0.0 to before 3.1.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-639 Authorization Bypass Through User-Controlled Key
References
- GitHub Security Advisory (GHSA-6c57-xm2f-23fg)Vendor Advisory
- https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857Patch
- https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106fPatch
- Portainer 2.45.4 Release NotesRelease Notes
- https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/attach.go#L42-L92Technical Details
- https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96Technical Details
- VulnCheck Advisory: Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 Authorization Bypass via WebSocket Attach and ExecThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.