Description
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.
Published: 2026-06-26
Score: 9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dokku, a Docker‑based platform as a service, suffered a high‑severity remote code execution flaw in its openresty‑vhosts plugin. Prior to version 0.38.2 the plugin copies files from an application’s openresty/http‑includes/ git directory to the host and then inserts their filenames into a single‑quoted shell string that is later executed with eval. A maliciously named file containing a single quote breaks the quoting and allows command substitution, giving an attacker the ability to execute arbitrary commands as the dokku user when the application is next deployed. This weakness corresponds to CWE‑95.

Affected Systems

The vulnerability affects all installations of the dokku platform that use the openresty‑vhosts plugin before release 0.38.2. Anyone running a version older than 0.38.2, irrespective of other configuration, is potentially impacted.

Risk and Exploitability

With a CVSS score of 9 the flaw is considered critical. The EPSS score is not available, so the exact likelihood of exploitation cannot be quantified, but the high severity and lack of countermeasures make exploitation plausible. The vulnerability is not listed in CISA’s KEV catalogue, yet attackers could target this flaw by pushing a specially crafted file to the openresty/http‑includes/ repository and triggering a deploy, thereby gaining shell access as the dokku user during the deployment process. The attack requires the ability to write to the repository, which typically means privileged deploy or git push rights.

Generated by OpenCVE AI on June 26, 2026 at 17:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Dokku to version 0.38.2 or later, which contains the fix for the insecure use of eval.
  • Immediately delete or sanitize any files placed in the openresty/http‑includes/ directories of existing applications to remove potential malicious names.
  • Restrict who can push to the openresty/http‑includes/ repository and enforce that only trusted users have deploy permissions, reducing the chance that an attacker can introduce malicious file names.

Generated by OpenCVE AI on June 26, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 26 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 26 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Dokku: Host RCE via Maliciously Named OpenResty Include Files Injected Through eval
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-26T18:30:50.240Z

Reserved: 2026-05-12T01:48:40.451Z

Link: CVE-2026-45406

cve-icon Vulnrichment

Updated: 2026-06-26T18:30:44.711Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T17:30:05Z

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')