Junglewise Threat Intelligence

CVE-2026-45629: Dokploy OS command injection in listen-deployment WebSocket

CVE-2026-45629 · Severity: critical · CVSS 9.9 · Published 2026-05-29

Technologies: Dokploy. Vendors: Dokploy.

Executive brief

Dokploy is a self-hostable platform used to manage and deploy applications across multiple servers. A security flaw allows any registered user within an organization to execute unauthorized commands on the remote servers managed by the platform. This could lead to a complete takeover of the infrastructure, allowing attackers to steal data, disrupt services, or gain full control over the underlying servers.

Technical details

An OS command injection vulnerability exists in the `/listen-deployment` WebSocket endpoint within `apps/dokploy/server/wss/listen-deployment.ts`. The endpoint accepts a `logPath` parameter which is validated using `readValidDirectory()`; however, this function uses `path.resolve()`, which does not neutralize shell metacharacters. The validated path is then directly interpolated into a shell command (`tail -n +1 -f ${logPath}`) and executed via SSH on remote servers. Furthermore, the endpoint bypasses standard tRPC permission middleware, requiring only basic authentication and organization membership rather than specific server permissions. An attacker can use characters like `;` to append and execute arbitrary commands with the privileges of the SSH user.

Affected products

  • Dokploy Dokploy <= 0.28.8

Timeline

  • 2026-05-11: advisory: Original GitHub security advisory published
  • 2026-05-29: disclosed: CVE published to NVD

References

Related threats