Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain deploy access to openresty-enabled app
-
DeliveryCommit include file with single-quote payload
-
ExploitPush to trigger app deploy
-
ExecutionFilename interpolated into eval shell string
-
PersistCommand substitution runs as dokku user
-
ImpactHost compromise and lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) the app to use Dokku's openresty proxy - i.e. the openresty-vhosts plugin is active for the app (dokku proxy:set <app> openresty), which is not the default proxy; (2) the attacker to have deploy/push rights so they can place a file under openresty/http-includes/ or openresty/location-includes/; and (3) a deploy of that app to occur, since the vulnerable copy-and-eval runs during the core-post-extract and docker-args-process-deploy triggers at deploy time. The injection vector is specifically a filename containing a single quote (plus command-substitution characters such as $() or backticks) that breaks the single-quoted shell string fed to eval. Limiting factors: it is not anonymous remote RCE - PR:L means the attacker must already be an authorized deployer, the non-default openresty proxy must be in use, and code executes as the dokku user (not directly root) only on a successful deploy. |
| Impact | The CVSS 3.1 base score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), reflecting full confidentiality/integrity/availability impact with low attacker privileges and no user interaction. The realistic risk is meaningful but bounded: this is not anonymous internet RCE - PR:L correctly captures that the attacker must already be able to deploy an app (git push / deploy rights), and the openresty proxy must be selected for the app rather than Dokku's default nginx proxy. No EPSS score, KEV listing, or SSVC decision data was provided, so widespread automated exploitation cannot be confirmed; the absence of KEV and of a standalone public exploit suggests this is not currently mass-exploited. The signals are internally consistent (network-reachable deploy path, low complexity, authenticated deployer), so this is a genuine privilege-escalation-to-host-RCE issue for multi-tenant or shared Dokku deployments, not a high-CVSS-but-low-real-risk finding. Note the AV:N rating reflects the git-push delivery channel; the dangerous code actually runs locally on the host during deploy, so the practical exposure is 'whoever can deploy can run host commands as the dokku user.' |
| Exploit ScenarioDerived | An attacker with deploy access to a Dokku app that uses the openresty proxy adds a file under openresty/http-includes/ whose name contains an embedded single quote plus a command-substitution payload, then triggers a deploy. On the next deploy the plugin interpolates the filename into a single-quoted shell string passed to eval, breaking the quoting and executing the attacker's commands as the dokku user on the host. No standalone public exploit is identified, but the upstream security regression test in tests/unit/openresty.bats demonstrates the eval-injection path, and the low attack complexity (AC:L, UI:N) makes exploitation reliable once deploy access exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 26, 2026
OS command execution on the Dokku host is possible through the openresty-vhosts plugin in versions prior to 0.38.2, where custom OpenResty include filenames from an app's git repository are interpolated unescaped into a single-quoted shell string that is later run through eval. An attacker who can deploy a Dokku app with the openresty proxy enabled can plant a file whose name contains a single quote to break the quoting and inject a command substitution, executing arbitrary commands as the dokku user on the next deploy. There is no public exploit identified at time of analysis and it is not in CISA KEV, though the upstream advisory and a security regression test document the mechanism precisely.
Earlier versions of this analysis (2)
Arbitrary command execution in Dokku's openresty-vhosts plugin (versions prior to 0.38.2) lets a user able to deploy an app run commands on the host as the dokku user. Malicious filenames placed in the app's openresty/http-includes/ directory are copied to the host and interpolated unescaped into a single-quoted shell string that is later passed to eval, so a single quote in a filename breaks the quoting and triggers command substitution on the next deploy. No public exploit identified at time of analysis, though the fix PR (#8588) ships a unit test demonstrating the injection.
Arbitrary command execution in Dokku's openresty-vhosts plugin (prior to 0.38.2) allows a developer with push access to an app to run commands on the host as the dokku user by committing an OpenResty include file whose name contains a single quote. The unescaped filename is interpolated into a single-quoted shell string that is later parsed by eval, enabling shell command substitution that fires during the app's next deploy. No public exploit has been identified at time of analysis, though the upstream advisory and patch PR document the flaw and ship a security regression test.
RemediationAI
Vendor-released patch: 0.38.2 - upgrade Dokku to 0.38.2 or later, which adds filename sanitization (only alphanumeric, underscore, dot, and hyphen characters allowed; files whose names contain quotes, spaces, $, backticks, parentheses, or semicolons are skipped, and unsafe filenames abort the deploy) per PR https://github.com/dokku/dokku/pull/8588 and advisory https://github.com/dokku/dokku/security/advisories/GHSA-ggqh-98fj-8mg9. If immediate upgrade is not possible, switch affected apps off the openresty proxy back to the default nginx proxy (dokku proxy:set <app> nginx), which removes the vulnerable code path at the cost of losing OpenResty-specific include functionality; alternatively, restrict who holds deploy access and audit/reject any files under openresty/http-includes/ or openresty/location-includes/ whose names contain characters outside [a-zA-Z0-9_.-] before allowing a deploy. Until patched, treat deploy access on openresty-enabled apps as host-shell-equivalent.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dokku is a Docker-powered, self-hosted PaaS that supports pluggable HTTP proxies. The affected component is the openresty-vhosts plugin, which lets an app ship custom OpenResty/NGINX snippets via openresty/http-includes/ and openresty/location-includes/ directories in the app repository. During deploy (the core-post-extract and docker-args-process-deploy triggers) the plugin copies these files to the host and then builds a shell string that embeds each filename inside single quotes, which is subsequently evaluated with eval. Because the filename is attacker-controlled and not escaped, this is a textbook CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code / eval injection): a filename containing a single quote terminates the quoting context, after which $(...) or backtick command substitution is parsed and executed by the shell. The affected CPE is cpe:2.3:a:dokku:dokku for all versions below 0.38.2.
Know when Dokku gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attacker must hold deploy rights so PR:L (not PR:N), delivery is over the network git/deploy path (AV:N), the eval path triggers reliably with no special timing (AC:L), and it yields full host command execution (C/I/A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
Dokku is a docker-powered PaaS. Prior to 0.38.2, the openresty-vhosts plugin copies files from an app's openresty/http-includes/ git repository directory to the host and then interpolates their filenames, unescaped, into a single-quoted shell string that is later parsed by eval. A filename containing a single quote breaks the quoting and allows command substitution to execute arbitrary commands on the host as the dokku user during the app's next deploy. This vulnerability is fixed in 0.38.2.
Executive ViewAI
Dokku's openresty-vhosts plugin versions prior to 0.38.2 allow authenticated users with deployment privileges to execute arbitrary commands on the host operating system. This vulnerability could compromise the entire Dokku infrastructure and all deployed applications within affected organizations.
Vendor-released patch: openresty-vhosts version 0.38.2
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Container-to-host command execution in Dokku's cron plugin (versions prior to 0.38.7) lets an actor who can control an a
OS command injection in Dokku (the Docker-powered self-hosted PaaS) prior to version 0.38.2 allows an authenticated user
Arbitrary file write in Dokku before 0.38.2 lets an attacker with deploy-level access escalate to full shell access on t
Insufficiently protected credential storage in Dokku prior to 0.38.2 exposes git authentication secrets stored in $DOKKU
EUVD-2026-39803
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB