Skip to main content

Dokku CVE-2026-45406

| EUVDEUVD-2026-39803 HIGH
Eval Injection (CWE-95)
2026-06-26 GitHub_M
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain deploy access to openresty-enabled app
  2. Delivery
    Commit include file with single-quote payload
  3. Exploit
    Push to trigger app deploy
  4. Execution
    Filename interpolated into eval shell string
  5. Persist
    Command substitution runs as dokku user
  6. Impact
    Host 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 26, 2026 - 19:15 cvss changed CVSS 8.8

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.

v1 Jun 26, 2026 - 17:24 CVSS 9.0

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

dokku < 0.38.2

Affected Packages

euvd dokku fix: 0.38.2

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

Vendor (GitHub_M) PRIMARY CRITICAL
NVD 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Jun 26, 2026 - 19:17 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 26, 2026 - 19:15 vuln.today
v2 - CVSS changed
Severity Changed
Jun 26, 2026 - 19:07 NVD
CRITICAL HIGH
CVSS changed
Jun 26, 2026 - 19:07 NVD
9.0 (CRITICAL) 8.8 (HIGH)
Patch available
Jun 26, 2026 - 18:02 EUVD

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Vendor-released patch: openresty-vhosts version 0.38.2

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
popular open-source self-hosted PaaS, modest real-world production footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy