CVE-2026-45631

Dokploy: Pre-Auth Admin Takeover via Hardcoded Authentication Secret

Published May 29, 2026 CVSS 3.1 · 10 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Dokploy, a self‑hosted platform as a service, contains a flaw that lets an unauthenticated attacker forge email verification JWTs using a hardcoded secret, automatically sign in as an admin, and execute arbitrary commands on the host via the built‑in SSH terminal. This provides full administrative control, allowing the attacker to modify, delete, or exfiltrate data and compromise the underlying infrastructure. The vulnerability is a case of insecure default credentials (CWE‑798) and carries a CVSS score of 10.

Affected Systems

The affected products are Dokploy Dokploy version 0.27.0 through 0.29.2. The issue is fixed starting with 0.29.3; earlier releases remain vulnerable.

Risk and Exploitability

The CVSS score of 10 and lack of an EPSS rating indicate a high‑severity flaw with potentially low known exploitation, but the vulnerability is listed as not in the CISA KEV catalog. Attackers can exploit the flaw by sending a forged JWT to the web interface, which is likely reachable over the network; no special setup beyond the application exposure is required. Remediation is critical to prevent full administrative takeover and remote command execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Dokploy 0.29.3 or later.
  • Set the environment variable BETTER_AUTH_SECRET to a strong, unique value to override the hardcoded default.
  • Disable or restrict the built‑in SSH terminal feature until the patch is applied, or limit its access to trusted networks.

Generated by OpenCVE AI on May 29, 2026 at 18:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dokploy
Dokploy dokploy
Vendors & Products Dokploy
Dokploy dokploy
Type Values Removed Values Added
Description 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.
Title Dokploy: Pre-Auth Admin Takeover via Hardcoded Authentication Secret
Weaknesses CWE-798
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-798

    Use of Hard-coded Credentials

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 1, 2026, 3:23 PM
Reserved
May 12, 2026, 8:31 PM
Status
Deferred
Published
May 29, 2026, 6:17 PM
Modified
Oct 6, 2026, 10:10 PM