Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in Dokploy, a self-hostable Platform as a Service, allows authenticated users to gain root-level access to arbitrary containers on a self-hosted instance. This could lead to a significant compromise of deployed applications and services within the affected environment. The issue has been addressed in version 0.29.13.
- Unrestricted container access for authenticated users.
- Compromise of hosted applications and services.
- Confirm relevance and exposure of self-hosted instances.
Attack Path
How an attacker could exploit the issue
An attacker with authenticated access to a self-hosted Dokploy instance can escalate their privileges to gain a root shell in any container. This is possible because the system fails to properly verify that a user is authorized to access a specific container before executing commands within it. The vulnerability lies in how the `docker-container-terminal` feature handles requests, allowing any authenticated user to interact with arbitrary containers.
- Authenticated access to Dokploy is required.
- An attacker triggers the terminal feature.
- Risk of arbitrary container root shell.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow any authenticated user on a self-hosted Dokploy instance to execute arbitrary commands with root privileges within any container managed by the platform. This is possible because the system does not adequately verify a user's permissions before executing commands within a container, effectively granting broad access when the relevant code path is triggered.
- Root shell access in containers.
- Unauthenticated user executes `docker exec`.
- Complete system compromise.
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners and infrastructure teams are likely responsible for addressing this critical vulnerability in self-hosted Dokploy instances. The immediate first step is to identify all Dokploy deployments, assess their network accessibility and business criticality, and confirm the accountable owner for each. Remediation planning should then be prioritized based on this risk assessment, which may involve coordinating with vendors or implementing temporary risk reduction measures.
- Application owners should take primary responsibility.
- Verify instance reachability and business criticality.
- Plan remediation based on risk and maintenance windows.