Skip to main content

Coolify CVE-2025-66213

CRITICAL
OS Command Injection (CWE-78)
2025-12-23 security-advisories@github.com
9.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain Coolify management-role credentials
  2. Delivery
    Craft malicious file_storage_directory_source value
  3. Exploit
    Inject shell metacharacters into mount path
  4. Execution
    Command executed as root on managed server
  5. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 17, 2026 - 20:45 CVSS 8.8

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

Vendor (github) PRIMARY 9.4 CRITICAL
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
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/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:H/SI:H/SA:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

6
Analysis Updated
Oct 19, 2026 - 22:29 vuln.today
v2 - CVSS changed
Severity Changed
Oct 19, 2026 - 22:24 NVD
HIGH CRITICAL
CVSS changed
Oct 19, 2026 - 22:24 NVD
8.8 (HIGH) 9.4 (CRITICAL)
Patch released
Mar 17, 2026 - 20:45 nvd
Patch available
PoC Detected
Mar 17, 2026 - 17:16 vuln.today
Public exploit code
CVE Published
Dec 23, 2025 - 22:15 nvd
HIGH 8.8

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 59% exploitable
Prevalence
Medium
popular open-source self-hosted PaaS, moderate real-world production footprint
Exploit
POC
Public exploit code exists
Data Quality
5 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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

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

cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta104:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta105:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta106:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta107:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta108:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta109:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta110:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta111:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta112:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta113:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta114:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta115:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta116:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta117:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta118:*:*:*:*:*:*
+ 421 more
CVE-2026-57498 CRITICAL POC
9.6 Jun 29

Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,

CVE-2025-34161 CRITICAL POC
9.4 Aug 27

Coolify versions prior to v4.0.0-beta.420.7 are vulnerable to a remote code execution vulnerability in the project deplo

CVE-2025-34159 CRITICAL POC
9.4 Aug 27

Coolify versions prior to v4.0.0-beta.420.6 are vulnerable to a remote code execution vulnerability in the application d

CVE-2025-64424 CRITICAL POC
9.4 Jan 05

Command injection in Coolify up to and including v4.0.0-beta.434 lets any authenticated low-privileged 'member' execute

CVE-2025-59156 CRITICAL POC
9.4 Jan 05

Remote code execution on the host OS is possible through Coolify's application deployment workflow prior to version 4.0.

CVE-2025-66211 CRITICAL POC
9.4 Dec 23

Authenticated command injection in Coolify's PostgreSQL initialization-script filename handling allows users with applic

CVE-2025-66210 CRITICAL POC
9.4 Dec 23

Coolify versions prior to 4.0.0-beta.451 pass user-supplied database names unsanitized into shell commands executed via

CVE-2025-66212 CRITICAL POC
9.4 Dec 23

Authenticated command injection in Coolify before 4.0.0-beta.451 lets users with application or service management permi

CVE-2025-59158 CRITICAL POC
9.4 Jan 05

Stored cross-site scripting in Coolify versions up to and including v4.0.0-beta.420.6 lets an authenticated low-privileg

CVE-2026-34594 HIGH POC
8.8 Jun 29

Authenticated OS command injection in Coolify before 4.0.0-beta.471 lets any user holding destination management permiss

CVE-2026-34597 HIGH POC
8.8 Jun 29

Authenticated remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.470 lets a low-privileged authentica

CVE-2025-59157 HIGH POC
8.8 Jan 05

Command injection in Coolify's Git Repository field during project creation allows an authenticated member account to ru

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