All vulnerabilities

Servers and applications

CVE-2026-55761

Unauthenticated Restore and Admin-Account-Creation Endpoints Allow Admin Takeover on Uninitialised Portainer Instances

Severity
High 7.1
Published
2 Jul 2026
Last changed
10 Jul 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.39.4, 2.43.0
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper authentication (CWE-287)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-x626-fcwx-f5pc
Sources
NVD, Project advisories (GitHub)

Description

Portainer supports restoring an instance from a backup archive via the /api/restore endpoint. This endpoint is intentionally unauthenticated to allow restoring before the first admin account is created, and remains accessible for the five-minute initialization window that opens each time Portainer starts. Any unauthenticated attacker with network access to a Portainer instance that has not yet been initialised can exploit this window to replace the Portainer database with a crafted archive containing attacker-controlled credentials and gain full administrative access. The same unauthenticated setup window also exposes the administrator-account-creation endpoint (/api/users/admin/init), which an attacker can call to create the first administrator directly; the fix gates both endpoints.

The attack requires the instance to be uninitialized, reachable by the attacker, and within the five-minute window.

From portainer/portainer's security advisory. Shortened; the full text is there.

Workarounds

Administrators who cannot immediately upgrade can reduce exposure by:

  • Provision the administrator account at deploy time. Start any network-reachable instance with --admin-password or --admin-password-file, supplying a pre-set administrator password. The admin account then exists from first boot, so the instance is never in the uninitialised state that the restore and admin-init endpoints depend on — there is no setup window for an attacker to race. This is the most effective workaround for new, internet- or network-facing deployments.
Workarounds as given by portainer/portainer's security advisory.

Affected software

SoftwareAffected versions
PortainerServers and applications · cpe:a:portainer:portainer
  • From 2.39.0 before 2.39.4
  • From 2.40.0 before 2.43.0
PortainerServers and applications · github:portainer/portainer
  • From 2.39.0 before 2.39.4
  • From 2.40.0 before 2.43.0

About Portainer

Open source software to manage Docker, docker swarm and Kubernetes

From Wikidata, CC0 1.0.
Docker Hub pulls
1,590,442,292Docker Hub, 15 Nov 2026
GitHub stars
38,831GitHub, 15 Nov 2026
Forks
2,940GitHub, 15 Nov 2026
Latest release
2.45.3GitHub, 15 Nov 2026
Released
21 Oct 2026GitHub
License
ZlibGitHub
First published on GitHub
19 May 2016GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-55761
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-55761
  • GitHub Advisory Database https://github.com/advisories/GHSA-x626-fcwx-f5pc
  • github.com https://github.com/portainer/portainer/security/advisories/GHSA-x626-fcwx-f5pc