Skip to main content
Vulnerability Database/CVE-2026-113354

CVE-2026-113354: Dockhand Arbitrary File Read Vulnerability

CVE-2026-113354 is an arbitrary file read flaw in Dockhand before version 1.0.46 affecting non-admin users with stacks:edit permission. Attackers can read sensitive files like /etc/shadow and SSH keys. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113354 Overview

CVE-2026-113354 is an arbitrary file read vulnerability in Dockhand versions prior to 1.0.46. The flaw resides in the /api/system/files/content endpoint, which fails to validate the path parameter against the requesting user's permission scope. Non-admin users holding only the stacks:edit permission can supply absolute filesystem paths and retrieve the contents of any file readable by the Dockhand container process. Confirmed targets include /etc/shadow, /etc/passwd, Git .git/config credentials, and SSH private keys. The weakness is tracked as CWE-863: Incorrect Authorization.

Critical Impact

Authenticated low-privilege users can exfiltrate credentials, SSH keys, and password hashes from the Dockhand container, enabling lateral movement and privilege escalation to managed hosts.

Affected Products

  • Dockhand versions prior to 1.0.46
  • Dockhand container deployments exposing the /api/system/files/content endpoint
  • Dockhand instances where non-admin accounts hold the stacks:edit permission

Discovery Timeline

  • 2026-10-20 - CVE-2026-113354 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-113354

Vulnerability Analysis

Dockhand exposes a file content API at /api/system/files/content intended for administrative file inspection. The endpoint accepts a path parameter but enforces authorization only on the API session, not on the resource being requested. Any authenticated user with the stacks:edit role, a permission typically granted to stack maintainers, can invoke the endpoint and read files well outside the application's data directory.

Because Dockhand runs inside a container that commonly mounts Docker socket secrets, Git credentials, and SSH keys for stack deployment, the readable surface includes high-value material. Attackers can harvest /etc/shadow for offline cracking, retrieve .git/config for repository credential theft, and pull private SSH keys used by Dockhand to manage downstream hosts.

Root Cause

The root cause is missing authorization and absent path validation in the +server.ts handler for /api/system/files/content. The endpoint does not restrict callers to administrators and does not canonicalize or sandbox the supplied path to an allow-listed directory. The patch in commit 5af4e69eb20bde4b84756eb600bd521c8d300fb5 introduces forbidden path roots, blocks sensitive segments such as .ssh, and resolves paths with resolve() before comparing against the deny list to defeat traversal payloads like /etc/../etc.

Attack Vector

Exploitation requires network access to the Dockhand web API and valid credentials for an account with stacks:edit. The attacker issues a GET request to /api/system/files/content with an absolute path value targeting a sensitive file. The server returns the raw file contents in the response body.

typescript
// Security patch excerpt - src/lib/server/backups/security.ts
 const FORBIDDEN_RESTORE_ROOTS = [
 	'/', '/etc', '/root', '/boot', '/dev', '/proc', '/sys', '/run',
 	'/var/run', '/bin', '/sbin', '/lib', '/lib64', '/var/lib/docker',
+	// A root-writing restore under /usr is a host-takeover primitive: /usr/local/bin
+	// (PATH hijack) and /usr/lib/systemd (unit drop). /usr holds no user data, so
+	// blocking it wholesale costs no legitimate restore.
+	'/usr',
 ];

+// Blocked as a path SEGMENT anywhere (not a root prefix): an .ssh directory is an
+// SSH-key takeover target under any user's home (/home/<user>/.ssh, /root/.ssh),
+// while /home/<user>/<data> stays a legitimate restore location.
+const FORBIDDEN_PATH_SEGMENTS = ['.ssh'];

Source: GitHub Commit 5af4e69

Detection Methods for CVE-2026-113354

Indicators of Compromise

  • HTTP requests to /api/system/files/content carrying absolute path values such as /etc/shadow, /etc/passwd, or paths containing .ssh or .git/config.
  • Requests to the endpoint originating from session tokens that are not bound to administrator accounts.
  • Unexpected outbound traffic from the Dockhand container shortly after file content reads, suggesting credential or key exfiltration.

Detection Strategies

  • Enable application access logging on the Dockhand reverse proxy and alert on any GET /api/system/files/content request whose path parameter resolves outside the expected stack directories.
  • Audit Dockhand role assignments and flag non-admin principals that invoke system file APIs.
  • Review Git repository and SSH access logs for authentications using credentials stored inside the Dockhand container during the vulnerable window.

Monitoring Recommendations

  • Forward Dockhand access and audit logs into a centralized SIEM for correlation with container egress and host login telemetry.
  • Monitor the Dockhand container filesystem for reads of /etc/shadow, /root/.ssh/*, and .git/config by the application process.
  • Alert on authentication to downstream hosts using SSH keys that are also present in the Dockhand container.

How to Mitigate CVE-2026-113354

Immediate Actions Required

  • Upgrade Dockhand to version 1.0.46 or later without delay.
  • Rotate all SSH keys, Git credentials, and secrets that were mounted into or stored by the Dockhand container.
  • Review the stacks:edit role membership and remove it from any user who does not require stack modification rights.

Patch Information

The vulnerability is fixed in Dockhand 1.0.46. The fix hardens the /api/system/files/content handler, introduces FORBIDDEN_RESTORE_ROOTS and FORBIDDEN_PATH_SEGMENTS guards, and normalizes paths with resolve() prior to comparison. See the GitHub Security Advisory GHSA-433w-5hff-22h6, the GitHub Release v1.0.46, and the VulnCheck Advisory for Dockhand.

Workarounds

  • Restrict network access to the Dockhand web interface so only trusted administrator workstations can reach /api/system/files/content.
  • Temporarily revoke the stacks:edit permission from non-administrator accounts until the upgrade is applied.
  • Run Dockhand as an unprivileged user and avoid mounting SSH keys or credential files into the container when possible.
bash
# Verify installed Dockhand version and upgrade the container
docker inspect --format '{{.Config.Image}}' dockhand
docker pull ghcr.io/finsys/dockhand:1.0.46
docker compose up -d dockhand

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.