Skip to main content
Menu
CVEs

Portainer authorization bypass in WebSocket attach and exec

Affects Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0, letting Standard users reach containers they are not authorised for in shared environments. Fixed in 2.39.9, 2.45.4, and 3.1.0.

CVE-2026-134804Published November 22, 2026, updated

8.7HighCNA
Exploited
No known exploitation
Fix
Fixed in 2.39.9, 2.45.4, 3.1.0
Who is exposed
Specific setups only

Summary

Portainer, a container management product, contains an authorization bypass that lets a standard user with shared environment access reach other users' containers through its WebSocket attach and exec endpoints. An attacker who can reach the service over the network and log in with a low-privilege account can hijack sessions using leaked container or exec IDs and gain interactive root shells.

Written by a model

Original 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.

Who should check

Teams running Portainer Community or Business Edition 2.39.0-2.39.8, 2.40.0-2.45.3, or 3.0.x, especially those sharing one environment across users or tenants.

“Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0”

vulncheck.com

What to do

  1. Check whether your setup matches what the bug needs.

    Authenticated user with the Standard user role and access to a shared Portainer environment. Portainer 2.39.0 to before 2.39.9, 2.40.0 to before 2.45.4, or 3.0.0 to before 3.1.0.
  2. Upgrade to a fixed version: 2.39.9, 2.45.4, 3.1.0.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-134804 (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), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-134804 (entry last updated 2026-11-22):
Affected:
- Go package github.com/portainer/portainer: from 2.39.0, fixed in 2.39.9; from 2.40.0, fixed in 2.45.4; from 3.0.0, fixed in 3.1.0
Fixed versions: 2.39.9, 2.45.4, 3.1.0.
Conditions (all must be true for the bug to be hit):
- Authenticated user with the Standard user role and access to a shared Portainer environment. (source: https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg)
- Portainer 2.39.0 to before 2.39.9, 2.40.0 to before 2.45.4, or 3.0.0 to before 3.1.0. (source: https://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)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, no user action.
CISA KEV: CVE-2026-134804 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134804 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (Go): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg
- https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857
- https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f
- https://github.com/portainer/portainer/releases/tag/2.45.4
- https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/attach.go#L42-L92
- https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96
- https://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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-134804
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134804"}.

Affected versions

cve.now Index

27Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure8/25Specific setups only, reachable over the network
  • Reach10/20Affects Go packages
  • Severity8.7/10CVSS 8.7
  • No patch0/5No signal

What would change the score

  • Would score about 77 if added to CISA KEV
  • Would score about 72 if CISA's SSVC rates exploitation active
  • Would score about 34 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 9

Questions about CVE-2026-134804

Is CVE-2026-134804 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

An authenticated user with the Standard user role can get a fully interactive root shell inside containers they were not authorised through Portainer to access, including containers owned by other users or teams. From there they can view and change the workload's data and processes.

Source: github.com, vulncheck.com

Which versions are affected by CVE-2026-134804?

github.com/portainer/portainer (Go): from 2.39.0 before 2.39.9; from 2.40.0 before 2.45.4; from 3.0.0 before 3.1.0.

Source: cve.now feed data

Am I affected, and how do I check?

Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 are affected when Standard users have access to a shared Portainer environment. Check the Portainer version in use and whether Standard user accounts can access shared environments.

Source: github.com, vulncheck.com

How do I fix CVE-2026-134804?

Upgrade to Portainer 2.39.9, 2.45.4, or 3.1.0, whichever matches your release line. The listed fixed versions are the fix for this vulnerability.

Source: github.com, vulncheck.com

No corrections so far. Something wrong on this page? Report an error.