Dokploy
Dokploy: Authenticated OS command injection in backup.restoreBackupWithLogs (databaseName) leading to host RCE
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, the backup.restoreBackupWithLogs tRPC subscription passes the databaseName parameter to restore builders in packages/server/src/utils/restore/utils.ts, where PostgreSQL, MariaDB, MySQL, and MongoDB commands embed the value in nested shell text executed by Node.js exec. An authenticated user with backup:restore permission can supply a crafted databaseName that the host /bin/sh expands before docker exec, resulting in arbitrary commands running in the Docker-privileged host context. This issue is fixed in version 0.29.13.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.29.13
Fixed in 0.29.13
Mitigation
Upgrade dokploy to 0.29.13 or later.
References
- Vendor advisory github.com/Dokploy/dokploy/security/advisories…
- Patch github.com/Dokploy/dokploy/pull/4862
- Patch github.com/Dokploy/dokploy/commit/ccd2e83c57d9…
1 more
- Release notes github.com/Dokploy/dokploy/releases/tag/v0.29.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.