Skip to main content
EPSS 0.5%top 59%

Portainer has Unauthenticated Restore Endpoint that Allows Admin Takeover on Uninitialized Instances (CVE-2026-55761)

0
High
Published: 08/28/2026 (08/28/2026, 20:28:19 UTC)
Source: GCVE Database
Product: github.com/portainer/portainer

Description

Portainer versions from 2.39.0 up to but not including 2.39.4 and from 2.40.0 up to but not including 2.43.0 contain an unauthenticated restore endpoint (/api/restore) accessible during a five-minute initialization window after startup. This endpoint allows an attacker with network access to an uninitialized instance to replace the Portainer database with attacker-controlled credentials, resulting in full administrative access. The vulnerability also exposes the administrator-account-creation endpoint during this window. The attack requires no credentials but depends on the instance being uninitialized, reachable, and within the setup window. The vulnerability is fixed in Portainer 2.39.4 and 2.43.0. Workarounds include provisioning the admin account at deploy time, restricting network access before setup, and completing setup immediately.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

Goghsa
github.com/portainer/portainer
Affected versions
>=2.39.0 <2.39.4
Goghsa
github.com/portainer/portainer
Affected versions
>=2.40.0 <2.43.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 01:37:15 UTC

Technical Analysis

Portainer's /api/restore endpoint is intentionally unauthenticated to allow restoring backups before the first admin account is created. However, this endpoint remains accessible for a five-minute window after each startup when the instance is uninitialized. During this window, an unauthenticated attacker with network access can exploit the endpoint to replace the Portainer database with a crafted backup archive containing attacker-controlled credentials, gaining full administrative access. The same unauthenticated setup window exposes the /api/users/admin/init endpoint, allowing direct creation of the first admin account. The vulnerability affects Portainer versions >=2.39.0 <2.39.4 and >=2.40.0 <2.43.0. The fix gates both endpoints to require authentication or disable access after initialization. The vulnerability is rated high severity due to the potential for full admin takeover and subsequent control over Docker hosts and Kubernetes clusters managed by Portainer.

Potential Impact

Successful exploitation allows an unauthenticated attacker to gain full administrative access to a Portainer instance during its five-minute initialization window before the first admin account is created. Although the instance is new and contains no confidential data or workloads at this time, the attacker can control the Portainer database and thus obtain credentials and API access to all Docker hosts, Kubernetes clusters, and edge agents registered with the instance. This can lead to root-equivalent control over the underlying hosts and clusters managed by Portainer. The impact is limited to uninitialized instances reachable by the attacker within the setup window.

Mitigation Recommendations

A patch is available and included in Portainer versions 2.39.4 and 2.43.0. Users should upgrade to these or later versions to remediate the vulnerability. Until upgrading, administrators can mitigate risk by provisioning the administrator account at deployment using the --admin-password or --admin-password-file options to eliminate the uninitialized state. Additionally, restricting network access to the Portainer API before completing initial setup and completing the initial setup immediately after deployment reduce the attack window. Administrators should audit existing deployments for unauthorized admin accounts if the instance was accessible before setup completion. These workarounds do not replace applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-x626-fcwx-f5pc
Osv Schema Version
1.4.0
Aliases
["CVE-2026-55761"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a92f81bacd9273b49e91108

Added to database: 08/29/2026, 15:17:47 UTC

Last enriched: 09/08/2026, 01:37:15 UTC

Last updated: 10/13/2026, 18:48:21 UTC

Views: 86

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses