---
title: "CVE-2026-134804: Portainer - Authorization Bypass"
description: "Portainer 2.39.0 < 2.39.9, 2.40.0 < 2.45.4, and 3.0.0 < 3.1.0 contain an authorization bypass caused by improper access control on WebSocket attach and exec endpoints, letting standard users hijack sessions and gain root shells, exploit requires shared environment access."
url: https://panop.io/threat-heartbeat/CVE-2026-134804/
---

# CVE-2026-134804 Portainer - Authorization Bypass

Portainer 2.39.0 < 2.39.9, 2.40.0 < 2.45.4, and 3.0.0 < 3.1.0 contain an authorization bypass caused by improper access control on WebSocket attach and exec endpoints, letting standard users hijack sessions and gain root shells, exploit requires shared environment access.

CVSS base score 8.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-134804)

## Details

Type

Authorization Bypass

Impact

Privilege Escalation, Broken Access Control

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Published

22 November 2026

Updated

23 November 2026

Weakness

[CWE-639](https://cwe.mitre.org/data/definitions/639.html)

## Vendor fix

Upgrade to versions 2.39.9, 2.45.4, 3.1.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-134804](https://nvd.nist.gov/vuln/detail/CVE-2026-134804)
- [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/attach.go#L42-L92)
- [https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96](https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96)
- [https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857](https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857)
- [https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f](https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f)
- [https://github.com/portainer/portainer/releases/tag/2.45.4](https://github.com/portainer/portainer/releases/tag/2.45.4)
- [https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg](https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg)
- [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](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)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
