This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.
A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.
Weakness type: Path traversal.
✨ AI commentary
After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.
Official 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.
LibreOffice presentations can link to sounds, and SVG images and XHTML documents can link to images and objects. A crafted document could link to a local file in one of these ways and have that file's content put into…
A weakness has been identified in SourceCodester Student Grading System 1.0. This issue affects some unknown processing of the file report_card.php of the component Report Card. Executing a manipulation of the argument…
LibreOffice Calc can take the data of a pivot table or a database range from a database that the document names by address. A crafted document could name a local folder of text files this way, so that the content of a…
Azuriom is a complete open-source web solution for game servers. Prior to version 1.2.12, Azuriom contained an improper permission validation issue in the admin role management flow. When a role's permissions were…
Azuriom is a complete open-source web solution for game servers. Prior to version 1.2.12, Azuriom contained an improper authorization issue in the admin role creation flow. A user with access to the administrator area…
@zereight/mcp-gitlab is a Model Context Protocol server for GitLab. From 2.2.5 until 2.3.7, assertProjectAllowlist for gitlab_api_request in tools/gitlab-api-request.ts returns without enforcing the configured…