CVE-2025-53376·Docker vulnerability
Dokploy is a self-hostable Platform as a Service (PaaS) that simplifies the deployment and management of applications and databases. An authenticated, low-privileged user can run arbitrary OS commands on the Dokploy host. The tRPC procedure docker.getContainersByAppNameMatch interpolates the attacker-supplied appName value into a Docker CLI call without sanitisation, enabling command injection under the Dokploy service account. This vulnerability is fixed in 0.23.7.
- Severity
- high
- Software
- Docker
- Fixed in
- 0.23.7
- Published
- 2025-07-07
Affected versions
Until: 0.23.7
Fixed in: 0.23.7
How to fix this CVE
Update Dokploy to version 0.23.7 or later to patch a command injection vulnerability in the docker.getContainersByAppNameMatch tRPC procedure. This vulnerability allows authenticated users with low privileges to execute arbitrary OS commands on the host system by injecting unsanitized input into Docker CLI calls. Immediate patching is critical for any Dokploy deployment accessible to multiple users.
sudo dnf upgrade docker-ceDefensia detects this vulnerability
WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a Web Application Firewall rule to block POST requests to /trpc/docker.getContainersByAppNameMatch that contain shell metacharacters (semicolon, pipe, ampersand, backtick, dollar sign) in the appName parameter. Example regex pattern: appName.*[;|&`$\n\r]How to check if you are affected
- Step 1: Check the installed Dokploy version by running: docker exec <dokploy-container-name> cat /app/package.json | grep version (or check the admin panel)
- Step 2: Verify if the tRPC endpoint /trpc/docker.getContainersByAppNameMatch is accessible by examining Dokploy's API routes and authentication logs
- Step 3: Search Docker logs and Dokploy application logs for suspicious appName parameters containing shell metacharacters (;, |, &, $, `, >, <, etc.): grep -E "(;|\||&|\$|\`|>|<)" /var/lib/docker/containers/*/logs.log
- Step 4: Verify the fix by confirming the installed version is 0.23.7 or higher and check the git commit hash fb5d2bd matches the deployed code
FAQ
What is CVE-2025-53376?
This is a command injection vulnerability in Dokploy's tRPC procedure that handles Docker container queries. Attackers can inject arbitrary shell commands through the appName parameter, which gets passed directly to Docker CLI without input sanitization.
Is CVE-2025-53376 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities catalog, CVE-2025-53376 is not currently being actively exploited in the wild. However, no public exploit is required due to the straightforward nature of command injection.
What versions of Docker are affected by CVE-2025-53376?
CVE-2025-53376 affects Dokploy versions prior to 0.23.7. All versions up to and including 0.23.6 contain the vulnerable tRPC procedure.
How do I check if my server is vulnerable to CVE-2025-53376?
Run the command: docker exec <dokploy-container-name> grep -i version /app/package.json to get the installed version. If it is below 0.23.7, your system is vulnerable.
Does Defensia detect CVE-2025-53376?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Dokploy is installed on a monitored server, CVE-2025-53376 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-53376. Free for 1 server.
Get started free