CVE-2026-134804: Portainer Insecure Direct Object Reference
Published 2026-11-22 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update Portainer to a fixed release (2.39.9, 2.45.4, 3.1.0, 2.40.0, 3.0.0) in your next patch cycle.
What to do
- Update Portainer to a fixed release: 2.39.9, 2.45.4, 3.1.0, 2.40.0 or 3.0.0 (whichever matches your release branch).
- Until it is patched, restrict network access to Portainer and review which accounts can log in to it.
- Review access logs for requests that walk through identifiers, and restrict the affected endpoint.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Portainer | Releases before the fixed versions | 2.39.9, 2.45.4, 3.1.0, 2.40.0 or 3.0.0 (whichever matches your release branch) |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs an ordinary low-privileged account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on confidentiality, integrity and availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | Low | The attacker needs an ordinary low-privileged account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: Insecure Direct Object Reference
By changing an identifier in a request, a user can access records that belong to someone else.
Classified as CWE-639.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857
- Patchhttps://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f
- Patchhttps://github.com/portainer/portainer/releases/tag/2.45.4
- Advisoryhttps://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg
- Advisoryhttps://www.vulncheck.com/advisories/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
- Referencehttps://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/attach.go#L42-L92
- Referencehttps://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96