All vulnerabilities

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
Weakness
Path traversal (CWE-22)OS command injection (CWE-78)
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.

From Dokploy/dokploy's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
DokployServers and applications · github:dokploy/dokploy
  • Every version before 0.31.0

About Dokploy

Open Source Alternative to Vercel, Netlify and Heroku.

From its GitHub repository.
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

References