Servers and applications
GHSA-6hx3-6r7f-pw6w
Potential authenticated OS command injection and path traversal through the patch `filePath` during Dokploy deployment
- Severity
- High 7.5
- Published
- 23 Nov 2026
- Last changed
- 23 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.31.0
- Attack
- Over the network · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H- Sources
- Project advisories (GitHub)
Description
Dokploy's application and Compose patch feature accepts a user-controlled filePath. In the examined source snapshot (application package version v0.30.6, Git commit 3efa90ea08000e64f5d115999af4480694489134), API validation checks only that filePath is nonempty. When patches are applied during deployment, generateApplyPatchesCommand() normalizes the value with path.join() and inserts it directly into a shell script without validating directory confinement or safely encoding it as a shell argument.
Two related weaknesses result: ../ segments can refer to paths outside the intended service code directory; and POSIX shell command substitutions such as $() embedded in a filename are evaluated even though the interpolated filename appears inside double quotes. If an authenticated user with permission to create service patches can trigger the vulnerable deployment flow, their patch may execute unintended commands in the deployment shell or write/delete files outside the service code tree.
Affected software
| Software | Affected versions |
|---|---|
DokployServers and applications · github:dokploy/dokploy |
|
About Dokploy
Open Source Alternative to Vercel, Netlify and Heroku.
- Total downloads
- 6MDokploy
- Docker Hub pulls
- 16,564,680Docker Hub, 22 Nov 2026
- GitHub stars
- 38,644GitHub, 22 Nov 2026
- Forks
- 3,184GitHub, 22 Nov 2026
- Latest release
- v0.31.4GitHub, 22 Nov 2026
- Released
- 17 Nov 2026GitHub
- First published on GitHub
- 19 Apr 2024GitHub
Source code Website Docker image
Vulnerabilities in Dokploy
- In our list
- 132
- Published in the last 12 months
- 128
- Critical, last 12 months
- 58
- High, last 12 months
- 43
- Known exploited
- 0
- CVE-2026-133520Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoDirectories repoPathMedium 5.3 20 Nov 2026
- CVE-2026-129989Dokploy: OS Command Injection via unsanitized publishDirectory in Nixpacks build pipelineCritical 9.9 18 Nov 2026
- CVE-2026-129987Dokploy: Authenticated RCE via Database Password Command SubstitutionCritical 9.9 18 Nov 2026
- CVE-2026-129433Dokploy before 0.31.1 OS Command Injection via Compose Backup serviceNameCritical 9.4 14 Nov 2026
- CVE-2026-128328Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoDirectories repoPathMedium 5.3 13 Nov 2026
- CVE-2026-128329Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoFileHigh 8.3 13 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-6hx3-6r7f-pw6w
- github.com https://github.com/Dokploy/dokploy/security/advisories/GHSA-6hx3-6r7f-pw6w