๐Ÿ” CVE Alert

CVE-2026-73040

HIGH 8.8

Dockge Path Traversal via Unvalidated Stack Name Allows Arbitrary Compose and .env Disclosure and Arbitrary Directory Deletion

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

Dockge validates a stack name only on the write path. In backend/stack.ts the allow-list check in validate(), which requires the name to match ^[a-z0-9_-]+$, is reached from save() alone, while the path getter returns path.join(this.server.stacksDir, this.name) and Stack.getStack builds path.join(server.stacksDir, stackName) with no check. The socket handlers in backend/agent-socket-handlers/docker-socket-handler.ts confirm the caller is logged in and that the name is a string, then pass it straight to Stack.getStack, so a name containing traversal sequences resolves outside the managed stacks directory. An authenticated user can therefore read the composeENV and composeYAML values of any directory the server process can reach, which discloses the secrets in that directory's .env or Compose file, and can invoke delete(), which runs docker compose down and then fsAsync.rm on the traversed path with recursive and force set, removing that directory. Disclosure is limited to files named .env or an accepted Compose filename, and deletion requires the target directory to hold a valid Compose file so that docker compose down exits successfully. Dockge commonly runs as root with access to the Docker socket, so the reachable set includes unrelated applications on the host. Instances configured with disableAuth, a supported option that logs the caller in as admin automatically, expose both operations without authentication.

CWE CWE-22
Vendor louislam
Product dockge
Published Aug 20, 2026
Stay Ahead of the Next One

Get instant alerts for louislam dockge

Be the first to know when new high vulnerabilities affecting louislam dockge are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

louislam / dockge
0 โ‰ค 1.5.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/louislam/dockge/issues/994 github.com: https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L155-L157 github.com: https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L377-L379 github.com: https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L218-L232 github.com: https://github.com/louislam/dockge/blob/1.5.0/backend/agent-socket-handlers/docker-socket-handler.ts#L43-L78 github.com: https://github.com/louislam/dockge vulncheck.com: https://www.vulncheck.com/advisories/dockge-path-traversal-via-unvalidated-stack-name-allows-arbitrary-compose-and-env-disclosure-and-arbitrary-directory-deletion

Credits

๐Ÿ” HK4zCzi