Coolify
CVE-2025-66213
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Coolify management-role credentials
-
DeliveryCraft malicious file_storage_directory_source value
-
ExploitInject shell metacharacters into mount path
-
ExecutionCommand executed as root on managed server
-
ImpactFull host compromise and lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques 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 | Requires an authenticated Coolify user who holds application or service management permissions (PR:L) - not available to anonymous or read-only users. The attacker must reach the File Storage Directory Mount Path configuration feature and supply a crafted file_storage_directory_source value containing shell metacharacters; Coolify then executes it as root on managed servers. No user interaction by a victim is required (UI:N) and no non-default configuration is needed beyond having at least one managed server and the ability to configure a file-storage mount. The primary limiting factor is the authentication/authorization gate: exploitation is confined to insiders, credential-compromise, or abuse of over-provisioned management roles. Affected: coollabs Coolify versions prior to 4.0.0-beta.451; fixed in 4.0.0-beta.451. |
| Impact | Signals are mixed and should be read together. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with full High impact to both the vulnerable and subsequent systems (VC/VI/VA/SC/SI/SA all H) correctly reflects a severe outcome: authenticated low-privilege users gain root RCE on every managed server, which is why the 9.4 Critical score is justified rather than inflated. Crucially, PR:L means this is NOT unauthenticated - an attacker must already hold application/service management permissions in Coolify, which meaningfully narrows the threat to malicious or compromised authorized users rather than anonymous internet attackers. This tension is reflected in the EPSS score of only 0.20% (41st percentile): despite publicly available exploit code, mass automated exploitation is unlikely because the vulnerability requires valid authenticated access to a management console. The CVE is NOT listed in CISA KEV, so there is no confirmed active exploitation - exploitation status is limited to 'publicly available exploit code exists.' Net assessment: a genuine high priority for any organization running affected Coolify versions (patch promptly), but the authentication gate and low EPSS indicate this is a privilege-escalation / insider-and-post-compromise risk vector rather than a widespread remote-mass-exploitation emergency. |
| Exploit ScenarioDerived | An attacker who holds (or has phished/stolen) Coolify credentials with application or service management permissions configures a File Storage Directory Mount Path, injecting shell metacharacters into the file_storage_directory_source parameter, which Coolify passes unsanitized into a shell command run as root on the managed server. A public proof-of-concept exists (github.com/0xrakan/coolify-cve-2025-66209-66213), and because AC:L/AT:N, the injection succeeds reliably once the attacker has the required management role, yielding full root command execution on the host. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Authenticated Coolify users who hold application or service management permissions can execute arbitrary commands as root on managed servers by supplying a crafted file_storage_directory_source value in the File Storage Directory Mount Path feature. The parameter reaches shell command construction without sanitization, so shell metacharacters enable full host compromise; no victim interaction is required, but the attacker must already be authenticated with management rights. Publicly available exploit code exists, the vendor fixed the flaw in 4.0.0-beta.451, and EPSS is low at 0.20%, suggesting limited observed exploitation at time of analysis.
Earlier versions of this analysis (1)
An authenticated command injection vulnerability in Coolify's File Storage Directory Mount Path functionality allows users with application/service management permissions to execute arbitrary commands as root on managed servers. The vulnerability affects all Coolify versions prior to 4.0.0-beta.451 and has a publicly available proof-of-concept exploit, though current exploitation probability remains relatively low at 0.20% according to EPSS data. Attackers can achieve full remote code execution with root privileges on the host system by exploiting unsanitized input in the file_storage_directory_source parameter.
RemediationAI
Upgrade Coolify to 4.0.0-beta.451 or later; the vendor release at https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.451 and advisory GHSA-cj2c-9jx8-j427 document the fix, and patch PR 7375 adds shell-safe validation and escaping for affected command construction. Until upgrading, restrict Coolify application/service management permissions to trusted administrators, remove over-provisioned roles, and limit dashboard/API access to trusted networks because exploitation requires an authenticated management user. As a temporary compensating control, avoid configuring untrusted File Storage Directory Mount Path values and review audit logs or command inputs for shell metacharacters; these controls reduce exposure but do not fix the underlying command injection, and restricting permissions or network access can impair legitimate administration and deployment workflows.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coolify is a self-hostable PHP/Laravel-based control plane for managing servers, applications, and databases, and it executes shell commands on managed hosts to perform provisioning and storage operations. CVE-2025-66213 is CWE-78 OS command injection: the file_storage_directory_source parameter is interpolated into shell command strings without escaping, allowing an authenticated user with application/service management permissions to inject shell metacharacters and run commands as root. The independent assessment rates it CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, reflecting network reachability, low privileges, scope change, and high confidentiality/integrity/availability impact. The upstream fix PR 7375 adds validateShellSafePath checks and escapeshellarg usage across related command construction paths, including database backup names and init-script filenames, illustrating the same unsafe shell-interpolation pattern the advisory attributes to the mount-path field.
Know when Coolify 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Authenticated management user (PR:L) injects over the network (AV:N/AC:L) and escapes the app to execute as root on managed hosts, a scope change (S:C) with full C/I/A impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
6DescriptionCVE.org
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.451, an authenticated command injection vulnerability in the File Storage Directory Mount Path functionality allows users with application/service management permissions to execute arbitrary commands as root on managed servers. The file_storage_directory_source parameter is passed directly to shell commands without proper sanitization, enabling full remote code execution on the host system. Version 4.0.0-beta.451 fixes the issue.
Executive ViewAI
Coolify, a self-hosted deployment and infrastructure management platform, contains a critical flaw that lets any user with routine application or service management rights escalate to root on the servers Coolify controls. Because these accounts are commonly held by developers and platform engineers rather than a small administrative elite, the practical blast radius extends well beyond the security team and could expose production infrastructure, secrets, and hosted customer data. Leadership should care because the barrier to abuse is low for anyone already inside the platform, and a single compromise could affect every environment that instance manages.
Apply vendor patch.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,
Coolify versions prior to v4.0.0-beta.420.7 are vulnerable to a remote code execution vulnerability in the project deplo
Coolify versions prior to v4.0.0-beta.420.6 are vulnerable to a remote code execution vulnerability in the application d
Command injection in Coolify up to and including v4.0.0-beta.434 lets any authenticated low-privileged 'member' execute
Remote code execution on the host OS is possible through Coolify's application deployment workflow prior to version 4.0.
Authenticated command injection in Coolify's PostgreSQL initialization-script filename handling allows users with applic
Coolify versions prior to 4.0.0-beta.451 pass user-supplied database names unsanitized into shell commands executed via
Authenticated command injection in Coolify before 4.0.0-beta.451 lets users with application or service management permi
Stored cross-site scripting in Coolify versions up to and including v4.0.0-beta.420.6 lets an authenticated low-privileg
Authenticated OS command injection in Coolify before 4.0.0-beta.471 lets any user holding destination management permiss
Authenticated remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.470 lets a low-privileged authentica
Command injection in Coolify's Git Repository field during project creation allows an authenticated member account to ru
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB