CVE-2026-137556: Dockhand before 1.0.57 Path Traversal RCE via composePath
Dockhand before 1.0.57 contains a path traversal vulnerability in validateStackPath, which omits the isProtectedPath() check and permits writes to protected system directories. Authenticated users with stacks:edit permission can send a crafted composePath to PUT /api/stacks/[name]/compose to write arbitrary files, such as cron payloads, achieving remote code execution as root.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An authenticated Dockhand user with the stacks:edit permission can exploit it. The attack is remote and does not require user interaction.
What access does an attacker need to achieve code execution?
The attacker needs credentials for an account permitted to edit stacks and must be able to submit a crafted composePath to PUT /api/stacks/[name]/compose. Successful exploitation can write files to protected system directories and execute code as root.
Which versions are affected?
Dockhand versions before 1.0.57 are affected. Upgrading to 1.0.57 or later addresses the vulnerable behavior described.