Dokploy
Dokploy Vulnerable to Authenticated Remote Code Execution via Command Injection in Docker Container Terminal WebSocket Endpoint
Dokploy is a free, self-hostable Platform as a Service (PaaS). In versions prior to 0.26.6, a critical command injection vulnerability exists in Dokploy's WebSocket endpoint `/docker-container-terminal`. The `containerId` and `activeWay` parameters are directly interpolated into shell commands without sanitization, allowing authenticated attackers to execute arbitrary commands on the host server. Version 0.26.6 fixes the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.26.6
Fixed in 0.26.6
Mitigation
Upgrade dokploy to 0.26.6 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 3.1 days after publication; not in CISA KEV. First PoC: otakuliu/CVE-2026-24841_Range (created 31 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| otakuliu/CVE-2026-24841_Range | 31 Jan 2026 +3.1 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /docker-container-terminal
- Query
containerId=x;{var};#activeWay=sh- Key headers
Cookie: session={var}- Ports
- 8765
- PoC User-Agent
evidence_placeholder- Seen in
- 1 repo: otakuliu/CVE-2026-24841_Range
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/docker-container-terminal\?(?:.*&)?containerId=x;\{var\};#.*activeWay=sh
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8765] (msg:"GG PoC-Monitor CVE-2026-24841 Dokploy dokploy exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/docker-container-terminal"; http.uri; content:"containerId=x|3b|{var}|3b|#"; http.uri; content:"activeWay=sh"; http.header; content:"Cookie: session="; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-24841; classtype:web-application-attack; sid:9503742; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Dokploy dokploy exploit attempt (CVE-2026-24841)
id: gg-pocmon-cve-2026-24841-9503742
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-24841. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-24841
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/docker-container-terminal'
cs-uri-query|contains|all:
- 'containerId=x;{var};#'
- 'activeWay=sh'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.24841