CVE-2026-55761·Docker vulnerability
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.
- Severity
- medium
- Software
- Docker
- Fixed in
- 2.43.0
- Published
- 2026-07-08
Affected versions
From: 2.40.0
Until: 2.43.0
Fixed in: 2.43.0
How to fix this CVE
Update Docker to version 2.43.0 or later to patch the unauthenticated initialization vulnerability. During the five-minute setup window on fresh instances, ensure network access to administrative endpoints is restricted until initialization is complete. If you cannot update immediately, implement network-level controls to block access to /api/restore and /api/users/admin/init endpoints from untrusted sources.
sudo dnf update docker-ceDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /api/restore HTTP/1.1|POST /api/users/admin/init HTTP/1.1|"endpoint":"/api/restore"|"endpoint":"/api/users/admin/init"WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block all unauthenticated requests to /api/restore and /api/users/admin/init endpoints by implementing authentication checks before these routes are processed. Use WAF rules to deny POST/GET requests matching these paths unless they include valid authentication tokens or come from whitelisted internal IPs.How to check if you are affected
- Run 'docker --version' or 'docker version' to check the installed Docker version and confirm if it falls within the vulnerable range (2.40.0 to 2.43.0).
- Check if your Docker instance has been initialized by verifying the presence of admin user accounts with 'docker exec <container-id> curl -s http://localhost:9000/api/users | grep admin' if running Portainer in a container.
- Review Docker daemon and application logs for POST requests to /api/restore or /api/users/admin/init from unexpected sources: 'grep -i "api/restore\|api/users/admin/init" /var/log/docker* /var/log/containers/* 2>/dev/null'.
- Verify the patch was applied by confirming the Docker version is 2.43.0 or later and checking commit hashes in 'docker inspect <image-id>' to ensure the vulnerable code has been removed.
FAQ
What is CVE-2026-55761?
CVE-2026-55761 is an authentication bypass vulnerability in Docker's initialization endpoints that allows an unauthenticated attacker to restore a malicious backup or create an administrator account during the five-minute setup window of a fresh instance, leading to full system compromise.
Is CVE-2026-55761 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities (KEV) catalog, CVE-2026-55761 is not currently being actively exploited in the wild, and no public exploit code is available.
What versions of Docker are affected by CVE-2026-55761?
Docker versions 2.40.0 through 2.43.0 are affected; versions 2.39.4 and 2.43.0+ contain the patch.
How do I check if my server is vulnerable to CVE-2026-55761?
Run 'docker --version' and verify the version is between 2.40.0 and 2.43.0. Additionally, check if unauthenticated access to the /api/restore endpoint is possible with: 'curl -s -X GET http://localhost:9000/api/restore' — a successful response indicates vulnerability.
Does Defensia detect CVE-2026-55761?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2026-55761 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
- https://github.com/portainer/portainer/commit/49f19107cf9a3540cbe406c9eb7f24390e1af02b
- https://github.com/portainer/portainer/commit/d2b56efcb4e43c4168bb6688eee9f6bf22867312
- https://github.com/portainer/portainer/issues/2770
- https://github.com/portainer/portainer/releases/tag/2.39.4
- https://github.com/portainer/portainer/releases/tag/2.43.0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-55761. Free for 1 server.
Get started free