Horizon Alert
Summary of the vulnerability and why it matters
This vulnerability affects the Dokploy platform, a self-hosted service for deploying applications. An authenticated user with application access could potentially execute arbitrary commands on the Dokploy host by triggering a deployment, leading to a compromise of the host system through its privileged Docker environment.
- Authenticated users can run commands on the host.
- Affects self-hosted application deployment platforms.
- Confirm relevance and potential exposure.
Attack Path
How an attacker could exploit the issue
An attacker with authenticated access to an application within Dokploy can trigger a vulnerability by initiating a Nixpacks deployment. This action exploits a flaw in how the `publishDirectory` build setting handles shell metacharacters, allowing them to be interpreted and executed as commands within the Docker environment. If successful, this could lead to complete compromise of the Dokploy host system.
- Requires authenticated application access.
- Triggered during Nixpacks deployment.
- Results in host system compromise.
Live Threat
Current exploitation, exposure, and threat context
An authenticated user could execute arbitrary commands on the Dokploy host by triggering a deployment, leading to potential compromise through the privileged Docker environment. This may affect the integrity and availability of the host system.
- Host system data and services.
- Authenticated user triggers Nixpacks deployment.
- Host compromise via Docker.
Operational Fix
Recommended remediation, mitigation, and detection steps
The vulnerability in Dokploy's Nixpacks build setting requires attention from teams managing the PaaS infrastructure and application deployments. The immediate first step is to locate all instances of Dokploy, determine their exposure and criticality, and identify the accountable system owners before planning remediation.
- Infrastructure and platform teams own resolution.
- Verify Dokploy instance exposure and criticality.
- Plan remediation based on risk and owner input.