MEDIUM 5.9

CVE-2026-55761: Portainer Community Edition Unauthenticated Admin Access Vulnerability

Portainer Community Edition has a security gap that allows unauthenticated attackers to set up a malicious administrator account or restore a backup file during the initial five-minute setup window on fresh installations. An attacker with network access can exploit this window to gain full administrative control over containerized environments managed by the vulnerable Portainer instance.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.9 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses (CWE)
CWE-287
Affected products
1 configuration(s)
Published / Modified
2026-07-08 / 2026-07-10

NVD description (verbatim)

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. In versions 2.39.0 through 2.39.3 and 2.40.0 until 2.43.0, unauthenticated restore and administrator initialization endpoints (/api/restore and /api/users/admin/init) remain accessible during the five-minute setup window for uninitialized instances, allowing a network attacker to restore a crafted backup or create the first administrator account and gain full administrative access. This issue is fixed in versions 2.39.4 and 2.43.0.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in Portainer Community Edition versions 2.39.0–2.39.3 and 2.40.0–2.42.x. The /api/restore and /api/users/admin/init endpoints lack proper authentication enforcement during the uninitialized setup phase, which remains open for five minutes after deployment. CWE-287 (Improper Authentication) describes the underlying defect. An attacker can POST to these endpoints without credentials to either call the restore function with a crafted backup payload or invoke the admin initialization endpoint to create the first administrator account, bypassing intended administrative controls.

Business impact

Successful exploitation grants an attacker immediate administrative access to the Portainer instance, enabling full control over containerized application deployments across Docker, Swarm, Kubernetes, or ACI environments. This can result in container manipulation, data exfiltration, lateral movement into orchestrated workloads, or service disruption. Organizations relying on Portainer for infrastructure management face operational risk, compliance exposure (especially in regulated sectors), and potential downstream compromise of applications running in managed containers.

Affected systems

Portainer Community Edition versions 2.39.0 through 2.39.3 and 2.40.0 through 2.42.x are vulnerable. Fixed versions are 2.39.4 and 2.43.0 or later. The vulnerability is present only during fresh, uninitialized deployments within the first five minutes of startup. Already-initialized Portainer instances are not affected because the endpoints are protected once setup is complete.

Exploitability

Exploitability is moderate. An attacker requires network access to the Portainer API endpoint, but authentication is absent during the setup window. No user interaction is required. The five-minute window provides a narrow but meaningful exposure window—particularly dangerous in cloud or container lab environments where instances may be provisioned dynamically and left unattended during initialization. Automated scanning and exploitation during infrastructure spin-up are plausible attack vectors.

Remediation

Upgrade immediately to Portainer Community Edition version 2.39.4 (for 2.39.x branch) or 2.43.0 (for 2.40+ branch). For organizations unable to upgrade immediately, implement network-level segmentation to restrict unauthenticated access to the Portainer API during deployment. Ensure Portainer instances are placed behind a load balancer or firewall that enforces authentication at the perimeter, and monitor initialization logs for suspicious /api/restore or /api/users/admin/init requests during the setup phase.

Patch guidance

Verify the available patches against the Portainer release notes and your deployment architecture. For Portainer Community Edition deployed via Docker, update the container image to 2.39.4 or 2.43.0+. For Kubernetes deployments, update the Helm chart or manifest to reference a patched image version. Test patches in a non-production environment first, particularly if you are running orchestrated workloads. No data migration or complex configuration changes are required post-patch, though restarting the Portainer service is necessary.

Detection guidance

Monitor API logs for unauthenticated POST requests to /api/restore or /api/users/admin/init during startup. Examine Portainer initialization events and audit logs for unexpected admin account creation. Implement Network Detection and Response (NDR) or API gateway logging to flag unauthenticated calls to these endpoints. In container orchestration environments, watch for rapid instance provisioning followed immediately by initialization endpoint activity from unexpected source IPs. Alert on any restore operation triggered outside normal maintenance windows.

Why prioritize this

Although the CVSS score is 5.9 (Medium), the vulnerability's ability to grant complete administrative control over containerized infrastructure justifies higher operational priority in environments where Portainer manages production workloads. The narrow five-minute exposure window and the requirement for network access are mitigating factors, but the integrity impact (I:H) and the prevalence of Portainer in microservices deployments elevate practical risk. Organizations with externally facing or internet-connected Portainer API endpoints should patch urgently.

Risk score, explained

The CVSS 3.1 score of 5.9 reflects a network-accessible vulnerability (AV:N) with high integrity impact (I:H) but no confidentiality or availability damage, and an assumption that exploitation requires some specialized conditions (AC:H, likely referring to the five-minute window timing). However, this score may underweight the business risk of administrative takeover in container orchestration contexts. Security teams should consider compensating controls and exposure level when deciding priority.

Frequently asked questions

Can already-running, initialized Portainer instances be exploited via this vulnerability?

No. The vulnerability only affects uninitialized Portainer instances during the first five minutes after startup. Once setup is complete and the first administrator account is created, the /api/restore and /api/users/admin/init endpoints are properly protected by authentication. Existing deployments are safe from this issue unless you are actively reinitializing or resetting the instance.

What is the practical attack window?

The vulnerability exists for five minutes from when an uninitialized Portainer instance starts. This window is most dangerous in dynamic infrastructure scenarios—CI/CD pipelines, container labs, or cloud environments where instances are frequently spun up. An attacker with network access during this window can trigger the exploit. Implementing network isolation or firewalls around Portainer during provisioning significantly reduces risk.

Do I need to migrate or back up my data before patching?

No. Upgrading from a vulnerable version to a patched version (2.39.4 or 2.43.0+) does not require data migration, backup, or reconfiguration. Simply update your Portainer container image or Helm chart to the patched version and restart the service. Your existing containers, orchestration configuration, and admin accounts remain intact.

What if Portainer is only accessible on an internal network?

Internal network access reduces but does not eliminate risk. A compromised internal system, lateral movement by an attacker, or a malicious insider could still exploit the vulnerability. Additionally, in shared or multi-tenant environments (cloud, container labs), internal network boundaries may be porous. Patching remains the recommended action. Network segmentation and firewall rules should still be applied as defense-in-depth measures.

This analysis is based on vendor-supplied CVE data current as of the publication date. Organizations should verify patch availability and compatibility with their specific Portainer deployment and verify against official Portainer release notes and security advisories. This explainer does not constitute a guarantee of patch effectiveness or liability mitigation. Apply patches in a controlled environment and perform validation before production deployment. For Portainer support, consult official channels. SEC.co assumes no liability for security decisions made based on this intelligence. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).