CVE-2026-137556 in Dockhandinfo

Summary

by MITRE • 11/26/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in Dockhand versions prior to 1.0.57 represents a critical path traversal flaw located within the validateStackPath function of the application's API layer. This security defect stems from an incomplete implementation of access control checks, specifically the omission of the isProtectedPath() validation routine during file write operations. In secure software design, functions responsible for handling user-supplied paths must rigorously sanitize input to ensure that writes are confined to designated, non-privileged directories. By failing to enforce this boundary check, the application allows authenticated users to manipulate filesystem paths in ways that bypass intended restrictions, leading directly to unauthorized access and modification of system-critical files.

From a technical perspective, an attacker with valid authentication credentials and stacks:edit permissions can exploit this flaw by crafting a malicious composePath parameter within HTTP PUT requests directed at the /api/stacks/[name]/compose endpoint. The application processes this input without verifying whether the target path resides outside of allowed directories or attempts to write into protected system locations such as /etc/cron.d or other root-owned directories. This lack of validation enables the attacker to overwrite arbitrary files on the host operating system with content controlled by the user, effectively turning a container orchestration management tool into an attack vector for persistent system compromise.

The operational impact of this vulnerability is severe, resulting in remote code execution as the root user due to the typical privileges associated with writing to protected system directories and executing scheduled tasks or services managed by these files. By placing malicious payloads such as cron jobs or systemd service definitions, an attacker can achieve persistence on the host machine even if container isolation mechanisms are otherwise intact. This escalation from a standard authenticated API interaction to full root-level control undermines the fundamental security model of Docker-based environments, potentially allowing lateral movement across other containers and hosts within the infrastructure.

This flaw aligns with CWE-22: Improper Limitation of a Pathname to a Restricted Directory, as it involves failing to restrict file operations to intended directories, and is further characterized by CWE-732: Incorrect Permission Assignment for Critical Resource due to the improper assignment of write permissions to sensitive system paths. In terms of offensive security frameworks, this vulnerability facilitates ATT&CK technique T1053: Scheduled Task/Job, specifically the cron variant, which allows attackers to establish persistence and execute commands at scheduled intervals with elevated privileges.

To mitigate this risk, organizations must immediately upgrade Dockhand to version 1.0.57 or later where the isProtectedPath() check has been properly integrated into the validation logic for stack path operations. Additionally, administrators should enforce strict least-privilege principles by ensuring that API users possess only the minimum permissions necessary for their roles and avoid granting stacks:edit access to untrusted individuals. Implementing file integrity monitoring on critical system directories can also aid in detecting unauthorized modifications resulting from such exploits before they lead to full system compromise.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.01274

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!