Portainer
Portainer: Unauthenticated Restore Endpoint Allows Admin Takeover on Uninitialised Portainer Instances
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.39.0, < 2.39.4
Fixed in 2.39.4
Mitigation
Upgrade portainer to 2.39.4 or later.
References
- Vendor advisory github.com/portainer/portainer/security/adviso…
- Patch github.com/portainer/portainer/commit/49f19107…
- Patch github.com/portainer/portainer/commit/d2b56efc…
2 more
- Release notes github.com/portainer/portainer/releases/tag/2.…
- Release notes github.com/portainer/portainer/releases/tag/2.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.