Image: Portainer Community Edition logo, from the Portainer repository (app/react/sidebar/portainer_logo-CE.svg) — official Portainer project artwork, used with attribution. Portainer CE is zlib-licensed, not Apache-2.0.
Portainer Auth-Bypass Batch CVE-2026-134804: Upgrade to 2.45.4 LTS — a Standard User Could Get Root in Any Container
Evidence: RESEARCH_ONLY — NOT LAB TESTED. This article is based on primary sources read directly on 27 November 2026: the NVD and OSV records for CVE-2026-134804 and CVE-2026-134756, Portainer’s own security advisories GHSA-6c57-xm2f-23fg, GHSA-9xr4-r82x-p44j and GHSA-26fg-hrxq-h6v4, the 2.45.4 and 2.39.9 release notes, Portainer’s 6 November 2026 blog post, the repository LICENSE file, and the CISA Known Exploited Vulnerabilities catalog (version 2026.11.25, read directly). The upgrade steps below were not run in a lab, and no command output in this article comes from a live run. Nothing here describes a tested upgrade, a tested backup, or a tested configuration change. See Verification scope.
The question
You run Portainer — the web UI in front of your Docker hosts, your Kubernetes clusters, or both — and you have given other people access to it. Maybe family members, maybe teammates, maybe a Standard user who only manages one stack. On 18–19 November 2026 Portainer shipped fixes for three authorization flaws at once, and the lead flaw means that any Standard user with access to a shared environment could open an interactive root session inside any container in that environment — including containers belonging to other users and teams. The other two flaws let the same low-privilege user hand themselves the Docker socket through a Compose file.
The decision up front: check your Portainer version today. If you run Community Edition, upgrade to 2.45.4 LTS. If you run Business Edition 3.0.x, upgrade to 3.1.0. There is no patch for 2.40.x–2.44.x or for 3.0.x — those lines are end of life and the only fix is the upgrade. Back up your Portainer data volume first, verify the version after the upgrade, and then audit who can attach to containers and who can deploy stacks.
What the vulnerabilities are
Three flaws, one upgrade. They share a theme: Portainer checked authorization at the wrong layer — the environment, the Compose validator — and never at the place where the dangerous action actually happens.
1. CVE-2026-134804 — WebSocket attach/exec authorization bypass (the lead flaw)
CVE-2026-134804 is an authorization bypass through user-controlled key (CWE-639) in Portainer’s WebSocket attach and exec handlers, as documented in the vendor advisory GHSA-6c57-xm2f-23fg.
The mechanism, as the advisory describes it, is short and damning. The GET /api/websocket/attach and GET /api/websocket/exec handlers authorize only at the environment level, then hijack a raw connection straight to the Docker socket. The per-container resource-control check that the Docker HTTP proxy normally enforces is never applied. A Standard user — the lowest role — with access to a shared environment can therefore open an interactive root session in any container in that environment, including other users’ and teams’ containers. Container and exec IDs leak through unfiltered event, task and network-inspect responses, and the attach path accepts short hex prefixes (Docker resolves ID prefixes), so IDs can also be brute-forced. The same gap exists over the agent and Edge WebSocket proxies.
The scores, attributed, never blended:
- CVSS 4.0: 8.7 (High), assigned by VulnCheck as CNA —
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. - CVSS 3.1: 8.8 (High), NVD — the same CNA assessment in the 3.1 format.
One rating needs care, because it looks like a contradiction and it is not. Portainer’s own advisory rates this flaw Medium, not High: its reasoning is that the impact on Portainer itself is limited and the impact falls on the managed workloads, which are “subsequent systems”. This article leads with the CNA scores (8.7 / 8.8) and records the vendor’s Medium rating alongside them. Do not present the vendor as rating it 8.7, and do not call the flaw “Critical” — neither scorer does.
The flaw was first reported on 24 June 2026 (by TA-MU-TA, Shahid-BugB; 18 independent reporters in total), the fix was merged on 13 November (develop and release/2.39) and 16 November (release/2.45), and the CVE record was published on 22 November 2026.
The vendor’s workarounds — treat environment access as full container access, separate untrusted tenants into distinct environments, audit attach/exec logs for foreign container/exec IDs and short prefixes — reduce the exposure. None of them replaces the fix.
2. GHSA-9xr4-r82x-p44j — Compose use_api_socket hands over the Docker socket (no CVE)
This flaw has no CVE ID as of 27 November 2026 — say so plainly; do not invent one. It is tracked only by its GitHub advisory ID, GHSA-9xr4-r82x-p44j.
The stack validator IsValidStackFile rejects bind mounts in volumes when the Hide bind mounts for non-administrators setting is enabled — but it never inspected a service’s use_api_socket flag. Compose then adds a bind mount of /var/run/docker.sock plus a DOCKER_CONFIG carrying registry credentials. Any authenticated Standard user with stack-management access to a Docker standalone environment can exploit it. It is a sibling of the earlier volumes_from bypass (GHSA-j3mf-q9qf-5qf8), not a regression of it. It was introduced in 2.39.0.
Severity: High, CVSS 4.0 8.7. One attribution note: the advisory page itself shows “High” with no numeric score visible in its text; the 8.7 figure comes from a secondary source (HIFY) citing the advisory. This article gives the number with that caveat in Verification scope.
The workaround is to enable Hide the use of Stacks for non-administrators per environment (a server-side setting; environment admins can still deploy). Merely hiding bind mounts does not block this route. Audit existing stacks for use_api_socket, and treat the daemon and any registry credentials as potentially exposed if such a stack may have run.
3. GHSA-26fg-hrxq-h6v4 — Compose profiles / include validator bypass (no CVE)
This flaw also has no CVE ID as of 27 November 2026. It is GHSA-26fg-hrxq-h6v4 only.
The validator loads the Compose file without activating profiles, so any service declaring profiles: is never inspected — and stack environment variables activate the profile at deploy time. The validator also disables include: during validation instead of rejecting it, while the deployer processes it in full: included files deploy uninspected, and an included env_file is read from the Portainer server’s own filesystem. The result: a Standard user can deploy a privileged container with host paths or the Docker socket mounted, and bypass the outbound-URL (SSRF) check too. The profiles gap was introduced in 2.39.1; the include gap in 2.45.2.
Severity: High, with no numeric score — no numeric CVSS was found in any source, and this article does not invent one.
The workaround is the same stack restriction — Hide the use of Stacks for non-administrators — plus limiting Standard-user environment access, and auditing stacks for profiles:, include: and COMPOSE_PROFILES in stack environment variables.
Exploitation status: not in KEV, no confirmed exploitation, one public PoC
This is the part that decides the urgency, and the evidence here points the other way from the Puppet flaw published the same week.
- CISA KEV: neither CVE-2026-134804 nor CVE-2026-134756 is listed. Checked against a direct fetch of the KEV JSON feed on 27 November 2026 — catalog version 2026.11.25, 1,805 entries, 0 matches for either CVE.
- No confirmed in-the-wild exploitation for any of the four flaws. The CISA SSVC decision points for both CVE-2026-134804 and CVE-2026-134756 record Exploitation: None (Automatable: No, Technical impact: Total for CVE-2026-134804). FIRST.org’s EPSS puts the 30-day exploitation probability for CVE-2026-134804 at about 0.7% (46th–51st percentile, as of 25 November 2026) — a dated forecast, not a stable figure.
- A public proof of concept exists — and proves capability only. The repository
googlesky/CVE-2026-134804was first noticed on 24 November 2026. It is one PoC repository, not evidence of use. This article does not reproduce exploit code, and does not claim exploitation.
That is a lower urgency signal than a KEV listing — but it is not a reason to wait. The flaws are trivially reachable by any authenticated Standard user, the PoC is public, and the fix is a single upgrade. The exposure window is yours to close.
Am I exposed? Check your version
Check the version in the Portainer UI (bottom-left, or Help → About), or from the host:
docker exec portainer /portainer --version
docker inspect portainer --format '{{ .Config.Image }}'
Then compare against the fix matrix. The fix releases shipped 18–19 November 2026 — the 2.45.4 tag is dated 18 November, while all three vendor advisories record all three fix releases as published 19 November, so this article gives the range, never a single day.
| Line | Affected | Fixed |
|---|---|---|
| 2.39.x (LTS) | 2.39.0–<2.39.9 | 2.39.9 |
| 2.40.x–2.44.x (STS) | 2.40.0–<2.45.4 | No patch — upgrade to 2.45.4 |
| 2.45.x (LTS) | 2.45.0–2.45.3 | 2.45.4 |
| 3.0.x (STS) | 3.0.0–<3.1.0 | No backport — upgrade to 3.1.0 |
| 3.1.x (STS) | — | Fixed in 3.1.0 |
| Before 2.39.0 | EOL | No fix |
The reader recommendation is unambiguous, and it is not “take the minimum patch for your line”:
- Community Edition users: upgrade to 2.45.4 LTS. CE receives updates only on the 2.45 line, and the vendor advises 2.39.x users to move to 2.45.4 or later rather than stopping at 2.39.9.
- Business Edition users on 3.0.x: upgrade to 3.1.0 STS. 3.0.x reached end of life on 19 November 2026.
- 2.40.x–2.44.x and pre-2.39.0: no patch exists. Upgrade to 2.45.4.
The latest release is still 2.45.4 as of 27 November 2026 — no 2.45.5 or 2.46 has appeared. The first Portainer 3 LTS (3.3) is planned for December 2026.
The upgrade
These steps are the documented procedure, corroborated by three independent secondary guides — they were not run in a lab for this article, so run them on your own system and observe the result.
-
Back up before you touch anything. In the UI: Settings → Back up Portainer, download the tar.gz, password-protect it, and keep it off the host. Or archive the data volume directly:
docker run --rm -v portainer_data:/data -v $(pwd):/backup \ alpine tar czf /backup/portainer-backup.tar.gz -C /data .Record your current version first — you need it to roll back. A newer database does not run on an older version, so rolling back means restoring the pre-upgrade backup into a fresh instance of the old tag, or copying
backups/portainer.db.bakoverportainer.dbin the volume and starting the previous tag. -
Recreate the container with the pinned tag — Community Edition. The container is disposable; the volume is not. A wrong volume argument produces a fresh empty install, so copy your existing
docker runarguments exactly and change only the tag:docker stop portainer docker rm portainer docker pull portainer/portainer-ce:2.45.4 docker run -d -p 8000:8000 -p 9443:9443 --name portainer \ --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ portainer/portainer-ce:2.45.4Pin the exact tag — do not use
latestor a bareltstag if you want a reproducible version. Adjust the ports and mounts to match your existing setup; the example above is the standard standalone deployment, not your deployment. -
Business Edition 3.0.x: upgrade to 3.1.0 through your normal BE upgrade path. The 3.1.0 fix itself is verified by all three vendor advisories; the 3.1.0 release-notes page itself could not be read (it returns 404 in the public repository, consistent with 3.x being Business-Edition-only), so this article does not quote it.
-
Update the server first, then the agents. Update Portainer Server before agents and Edge agents — a newer server tolerates older agents; the reverse is not reliably true.
-
Verify the fix. Log in and confirm the version in the UI, or re-run
docker exec portainer /portainer --versionanddocker inspectto confirm the image tag. Then confirm a Standard user gets a 403 when attaching to or executing in another user’s container, and audit stacks foruse_api_socket,profiles:,include:andCOMPOSE_PROFILESin stack environment variables.
One caution about the 2.45.4 release itself: it is a security-focused LTS patch with breaking changes. The release notes record that curl was removed from the kubectl shell image (use wget), stacks can only use networks the user has access to, in-app updates now pull the exact version tag instead of latest, GitOps source connection tests need write access, and Kubernetes permissions follow each user’s own ServiceAccount since 2.45.0 (read-only and helpdesk users lose secret-value visibility). Read the release notes before upgrading a Kubernetes deployment. The same release also fixes further authorization gaps — stack listing across environments, stack-update endpointId confusion, Git redeploy environment-variable disclosure, Docker network connect/disconnect checks, forceupdateservice, stack start/stop environment confusion, a GitOps credential leak, last-admin deletion, and an ECR token leak — and distrusts eMudhra-issued TLS certificates (CVE-2026-111943).
Whether Community Edition has in-app updates at all is unresolved: the 2.45.4 notes describe in-app updates pulling exact tags, while one secondary source says in-app updates are BE-only and CE is always updated by hand. This article gives CE readers the manual stop/pull/run procedure above and does not assert in-app-update availability for CE.
The lesson: environment access is container access
Patching closes the three flaws. It does not close the design question they expose. On unpatched versions, giving someone access to a shared environment was giving them root in every container in it — and a stack-deploy permission was a Docker-socket permission with extra steps.
Audit yours after upgrading:
- Who shares an environment with whom? Do not co-locate mutually untrusting tenants in one environment. Separate them into distinct environments.
- Who can manage stacks? Restrict stack deployment to administrators where the Hide the use of Stacks for non-administrators setting is not already on — and audit every existing stack for
use_api_socket,profiles:,include:andCOMPOSE_PROFILES. - Who can attach and exec? After the upgrade, confirm that a Standard user cannot attach to or execute in containers outside their own scope.
- Is the UI exposed? Do not expose the Portainer UI (port 9443) to the internet without strong authentication in front of it.
- Rotate credentials if a
use_api_socketstack may have run. The Docker daemon and any registry credentials it carried should be treated as potentially exposed.
The sibling flaw: CVE-2026-134756 (SSRF)
The same November batch includes a fourth flaw, and the same upgrade closes it — but it is a different kind of flaw, and it deserves its own paragraph rather than a footnote.
CVE-2026-134756 is a server-side request forgery flaw (CWE-918) in Portainer’s outbound-request features. User-supplied URLs are only syntax-checked by validate.IsURL, with no resolved-address validation, so an authenticated user can reach loopback, internal and cloud-metadata addresses through Git cloning, Helm retrieval, a registry ping or the GitLab proxy — probing ports and reading responses.
- CVSS 4.0: 5.3 (Medium), CNA. CVSS 3.1: 5.0 (Medium), NVD.
- Affected: 2.39.0–<2.45.1. Fixed in 2.45.1 — so anyone on 2.45.4 already has this fix; it is a reason to upgrade, not a separate action.
- Vendor advisory: GHSA-wqqf-pwjh-2hm6. (GHSA-j44f-f23h-v4p7 is only the GitHub Advisory Database mirror entry for the same CVE, not a second advisory.)
- Status: published 22 November 2026; not in CISA KEV; SSVC exploitation “None”.
The licence and support question: CE ends at 2.45
This is the part of the story that changes the recommendation for a large share of readers, and it is stated here without softening: Portainer Community Edition is zlib-licensed, not Apache-2.0. The repository LICENSE file reads “Copyright (c) 2018 Portainer.io” and is the zlib licence — permission to use for any purpose including commercial, with the three standard zlib restrictions. That covers the portainer/portainer repository and CE; Business Edition is a separate commercial build.
And the support picture is moving:
- CE 2.45 is the last Community Edition. Portainer 3 has no Community Edition; 3.x is Business-Edition-only (free up to 3 nodes via the 3 Nodes Free BE licence). CE 2.45 keeps receiving the same 2.45.x bug and security fixes as BE 2.45 LTS until August 2027, then nothing. The August 2027 date is from Portainer’s blog of 6 November 2026; an older lifecycle-policy page said May 2027, and this article follows the newer blog.
- 2.45.x LTS is the supported LTS line, and CE receives updates only on it. 2.39.x still got this patch (2.39.9), but the vendor advises moving to 2.45.4 or later.
- 2.40.x–2.44.x STS and 3.0.x STS are end of life with no patch. The first Portainer 3 LTS (3.3) is planned for December 2026.
If you run CE, this upgrade is also the moment to plan what comes after August 2027 — a BE licence, a different tool, or a pinned 2.45.4 that stops receiving fixes.
Sidebar: Portainer has had auth-boundary trouble before
One line of history, kept short because it is not part of this batch: CVE-2026-44848 (9.4), CVE-2026-44881 (8.5, Git-stack symlink arbitrary file read) and CVE-2026-44883 (7.7, JWT accepted via a ?token= query parameter, leaking tokens into proxy logs, browser history and Referer headers) are May 2026 flaws, fixed in 2.33.8 / 2.39.2 / 2.41.0. Anyone on 2.45.4 already has those fixes. They are background, not news — but they are the reason the lesson above is a pattern, not a one-off. The 2.45.4 and 2.39.9 release notes also fix Go-dependency CVEs CVE-2026-56857 and CVE-2026-78663 (both Critical) via a Go toolchain bump — dependency CVEs, not Portainer code flaws, and likewise background only.
Verification scope
- Sources read directly on 27 November 2026: the NVD and OSV records for CVE-2026-134804 and CVE-2026-134756, the vendor advisories GHSA-6c57-xm2f-23fg, GHSA-9xr4-r82x-p44j and GHSA-26fg-hrxq-h6v4 (read in full), the 2.45.4 and 2.39.9 release notes, the CISA KEV JSON feed (catalog version 2026.11.25, 1,805 entries; both CVEs absent), the Portainer blog of 6 November 2026, and the repository LICENSE file (zlib).
- Not verified in this run: the exact release day of 2.45.4 and 2.39.9 (trackers say 18 November for the 2.45.4 tag; the advisories say 19 November — the article says “18–19 November” and never a single day); the 3.1.0 release-notes text (the tag page returns 404 in the public repository — the 3.1.0 fix itself is verified via the advisories); the 2.45 LTS end-of-support date (August 2027 per the newer blog vs May 2027 on an older lifecycle page — the article follows the blog); the official docs wording for the upgrade/backup procedure (corroborated by three independent secondary guides; the docs page was not directly read); whether Community Edition has in-app updates (unresolved — the article gives CE readers the manual procedure and asserts nothing); the numeric CVSS 4.0 8.7 for GHSA-9xr4-r82x-p44j (secondary source only — the advisory page shows “High” with no number); and any numeric CVSS for GHSA-26fg-hrxq-h6v4 (none found in any source — the article says “High” with no number). The article states none of these as fact.
- Not lab-tested: no upgrade, backup, configuration change or command in this article was run in a lab. Commands are given so the reader can run them and observe the result on their own systems.
- What this article does not claim: that CVE-2026-134804 or CVE-2026-134756 is in CISA KEV or exploited in the wild (neither is, as of the 27 November 2026 catalog); that the googlesky PoC repository is evidence of exploitation (it is capability-only); that GHSA-9xr4-r82x-p44j or GHSA-26fg-hrxq-h6v4 has a CVE ID (neither does, as of 27 November 2026); that GHSA-88pc-g85c-cfjr or GHSA-j44f-f23h-v4p7 is a separate advisory (both are GitHub Advisory Database mirror entries); that the vendor rates CVE-2026-134804 8.7 (the vendor rates it Medium; 8.7 / 8.8 are the CNA scores); that CVE-2026-44848, CVE-2026-44881 or CVE-2026-44883 is fixed by this batch (they are May 2026 flaws, fixed in 2.33.8 / 2.39.2 / 2.41.0); that Portainer CE is Apache-2.0 (it is zlib); or that the upgrade, backup or rollback steps are lab-tested (they are not — RESEARCH_ONLY).
Sources
- NVD — CVE-2026-134804 — https://nvd.nist.gov/vuln/detail/CVE-2026-134804
- Portainer advisory GHSA-6c57-xm2f-23fg (CVE-2026-134804) — https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg
- Portainer advisory GHSA-9xr4-r82x-p44j (Compose
use_api_socket) — https://github.com/portainer/portainer/security/advisories/GHSA-9xr4-r82x-p44j - Portainer advisory GHSA-26fg-hrxq-h6v4 (Compose
profiles/include) — https://github.com/portainer/portainer/security/advisories/GHSA-26fg-hrxq-h6v4 - OSV — CVE-2026-134804 — https://osv.dev/vulnerability/CVE-2026-134804
- OSV — CVE-2026-134756 — https://osv.dev/vulnerability/CVE-2026-134756
- Portainer 2.45.4 release notes — https://github.com/portainer/portainer/releases/tag/2.45.4
- Portainer 2.39.9 release notes — https://github.com/portainer/portainer/releases/tag/2.39.9
- Portainer releases — https://github.com/portainer/portainer/releases
- CISA Known Exploited Vulnerabilities catalog — https://www.cisa.gov/kev
- Portainer blog, 6 November 2026 — Portainer 3 is Kubernetes-first — https://www.portainer.io/blog/portainer-3-is-kubernetes-first-not-kubernetes-only
- Portainer LICENSE (zlib) — https://raw.githubusercontent.com/portainer/portainer/develop/LICENSE
Related reading on phamnam.me
- Dokploy CVE-2026-129987: upgrade to 0.31.4 — a November 2026 batch of a different kind: authenticated member to host takeover in a self-hosted PaaS.
- Nginx “nginx2shell” RCE (CVE-2026-123633): upgrade and check your reverse proxy — the same month’s other unauthenticated RCE in the front of the stack, and the same audit-first approach.
- Puppet CVE-2026-115731: Deserialization RCE in Report Processing — Upgrade, Audit Autosigning, or Migrate to OpenVox — the same week’s exploited flaw, and the same lesson: the credential that gets you in is the one that matters.
- PHP November 2026 Security Release: 17 Fixes, 7 Critical — Audit Every PHP Copy and Upgrade Now — the same month’s patch cycle on the application side of a mixed stack, with the same audit-every-copy discipline.
Bình luận
Bình luận được duyệt trước khi hiển thị.Đang tải bình luận…
Để lại bình luận