Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover exposed Dokploy instance
-
DeliveryForge email-verification JWT with hardcoded secret
-
ExploitSubmit token to trigger auto-sign-in as admin
-
ExecutionOpen built-in browser SSH terminal
-
PersistExecute arbitrary commands on host
-
ImpactPivot to deployed apps and persist
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Credential externalization
MITRE ATT&CK
2 techniques across 2 tactics: Persistence, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Required: network reachability to a Dokploy 0.27.0-0.29.2 web interface where the operator did NOT override the default BETTER_AUTH_SECRET environment variable (the hardcoded fallback 'better-auth-secret-123456789' must be active). No authentication, no user interaction, and no special privileges are needed (CVSS AV:N/AC:L/PR:N/UI:N). Exploitation limits: instances that explicitly set a strong BETTER_AUTH_SECRET at deployment are not exploitable via this JWT-forgery path; deployments behind VPN/IP allowlists limit the attacker pool to those with network reachability; the built-in SSH terminal feature must be enabled (it is by default) to escalate from admin session to host command execution. |
| Impact | All available signals point to maximum priority. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H scores 10.0 (Critical) with a changed scope reflecting that compromise of the application yields control of the underlying host. Exploitation is automatable - discovering vulnerable instances via Shodan/HTTP fingerprinting plus a small forge-and-replay script is trivial because the secret is a static, source-leaked string. EPSS and CISA KEV data were not provided in the input, so real-world exploitation telemetry is unknown; however, KEV status is moot given the trivial nature and the CVSS-rated criticality. No public exploit is identified at time of analysis, but the GitHub Security Advisory (GHSA-w3gm-rc4p-9rhj) publicly describes the root cause, meaning skilled attackers can reproduce it from the advisory alone. Note: the linked PR #4374 diff supplied as 'source code evidence' shows only Zod branch-name regex formatting changes and does not appear to contain the BETTER_AUTH_SECRET fix - the actual secret-handling fix likely lives in a different commit referenced by GHSA-w3gm-rc4p-9rhj. |
| Exploit ScenarioDerived | An attacker scans the internet for exposed Dokploy login pages, identifies a target running 0.27.0-0.29.2, and uses the publicly known 'better-auth-secret-123456789' to sign a forged email-verification JWT for a chosen email address. Submitting the forged token to Dokploy's verification endpoint triggers the auto-sign-in flow as an admin, after which the attacker opens the built-in browser-based SSH terminal and executes arbitrary shell commands on the host - pivoting into deployed containers, stealing application secrets, and persisting via cron or SSH key implantation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 29, 2026
Remote code execution in Dokploy 0.27.0 through 0.29.2 allows unauthenticated attackers to forge email-verification JWTs using a hardcoded BETTER_AUTH_SECRET fallback ('better-auth-secret-123456789'), auto-sign-in as admin, and run arbitrary commands on the host through the built-in SSH terminal. The flaw carries a CVSS 10.0 score with network attack vector and no required privileges, and while no public exploit is identified at time of analysis, the trivially guessable secret makes weaponization straightforward.
RemediationAI
Upgrade immediately to Dokploy 0.29.3 or later, which is the vendor-released patch per the GitHub Security Advisory GHSA-w3gm-rc4p-9rhj (https://github.com/Dokploy/dokploy/security/advisories/GHSA-w3gm-rc4p-9rhj). As a pre-upgrade workaround, set a strong, randomly generated BETTER_AUTH_SECRET environment variable (e.g., 'openssl rand -base64 48') and restart Dokploy - this breaks the hardcoded-fallback code path and invalidates any tokens an attacker may have already forged (existing legitimate sessions will also need to re-authenticate). If patching is not immediately possible, additionally restrict the Dokploy web UI to a VPN or trusted IP allowlist via a reverse proxy or host firewall, since the attack requires network reachability to the auth endpoint; note this still leaves any user who can reach the UI (including internal attackers) able to exploit. After patching, rotate the BETTER_AUTH_SECRET, force-invalidate all existing sessions, audit the admin user list and SSH terminal command history for unauthorized activity, and rotate any credentials/SSH keys stored within Dokploy.
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
Dokploy is a self-hostable Platform-as-a-Service (PaaS) similar to Heroku/Vercel that uses the better-auth authentication library for session and email-verification token management. better-auth signs JWTs (including the email verification token consumed during sign-up/sign-in flows) with the BETTER_AUTH_SECRET environment variable; when operators failed to set this variable, Dokploy fell back to the literal string 'better-auth-secret-123456789' baked into the source. This is a textbook CWE-798 (Use of Hard-coded Credentials) issue: because the secret is public knowledge in the source tree, any attacker can mint valid signed tokens. Combined with Dokploy's built-in browser SSH terminal - a feature intentionally exposed to authenticated admins for managing the host running the PaaS - token forgery escalates directly to host command execution.
Know when Dokploy 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:N/UI:N/S:C/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Dokploy is a free, self-hostable Platform as a Service (PaaS). From 0.27.0 to before 0.29.3, a hardcoded BETTER_AUTH_SECRET fallback ("better-auth-secret-123456789") lets an unauthenticated attacker forge email verification JWTs, trigger auto-sign-in as admin, and execute commands on the host via the built-in SSH terminal. This vulnerability is fixed in 0.29.3.
Executive ViewAI
Dokploy versions 0.27.0-0.29.2 expose a critical authentication bypass allowing any unauthenticated attacker to execute arbitrary commands on production hosts. Organizations running affected versions face immediate risk of complete infrastructure compromise with no required credentials or technical sophistication, as the vulnerability relies on a trivially guessable hardcoded secret. Affected customers must act within 24 hours to prevent unauthorized access and potential data loss or system destruction.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict Dokploy management console to trusted internal networks via firewall; disable or block the SSH terminal API endpoint at the application or network level if business operations permit; rotate all administrative credentials and API keys immediately; implement runtime monitoring and alerting on SSH terminal endpoint access and authentication failures; review and restrict account creation permissions; maintain detailed audit logs of all Dokploy activities; consider offline backup isolation for critical application configurations.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Dokploy self-hosted PaaS prior to 0.26.6 has a critical command injection vulnerability (CVSS 9.9) allowing authenticate
Dokploy versions before 0.26.6 contain hardcoded database credentials in the installation script, causing nearly all dep
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Authenticated users with create permission on an application in Dokploy versions prior to 0.31.1 can execute arbitrary c
Authenticated command injection in Dokploy before 0.31.1 lets a low-privileged member with file-mount create and delete
Authenticated command injection in Dokploy before 0.31.1 lets an organization member holding backup permission on a sing
Authenticated Dokploy organization members can break out of their tenant boundary and reach root on the Docker host: the
Command injection in Dokploy (self-hosted PaaS) before 0.29.13 lets an authenticated low-privilege member run arbitrary
Command injection in Dokploy (self-hosted PaaS) before 0.29.13 lets an authenticated panel user run arbitrary commands o
Command injection in Dokploy (self-hostable PaaS) before 0.29.13 lets an authenticated user run arbitrary OS commands on
OS command injection in Dokploy self-hosted PaaS before 0.29.13 lets an authenticated member with service-deployment per
EUVD-2026-33355
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB