# CVE-2026-73040: Dockge Path Traversal via Unvalidated Stack Name Allows Arbitrary Compose and .env Disclosure and Arbitrary Directory Deletion

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-20T20:29:00.157Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- louislam dockge: up to 1.5.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/louislam/dockge/issues/994> (exploit, issue-tracking)
- <https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L155-L157> (technical-description)
- <https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L377-L379> (technical-description)
- <https://github.com/louislam/dockge/blob/1.5.0/backend/stack.ts#L218-L232> (technical-description)
- <https://github.com/louislam/dockge/blob/1.5.0/backend/agent-socket-handlers/docker-socket-handler.ts#L43-L78> (technical-description)
- <https://github.com/louislam/dockge> (product)
- <https://www.vulncheck.com/advisories/dockge-path-traversal-via-unvalidated-stack-name-allows-arbitrary-compose-and-env-disclosure-and-arbitrary-directory-deletion> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-73040](https://www.cve.org/CVERecord?id=CVE-2026-73040), CVE Terms of Use, modified 2026-09-24
- NVD: [CVE-2026-73040](https://nvd.nist.gov/vuln/detail/CVE-2026-73040), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-73040 · Whole record: https://cve.day/CVE-2026-73040.json · Rebuilt by cve.day 2026-11-25T22:59:34.706Z
