External risk intelligence

Coolify Command Injection Vulnerability Allows Root Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2025-66213

Coolify is a self-hosted platform designed for managing servers, applications, and databases. As a centralized management and deployment service, it is commonly deployed as a web-accessible portal or administrative gateway, making it a likely candidate for internet-facing exposure in DevOps and server administration environments.

OS Command Injection

Coollabs Coolify

before 4.0.04.0.0

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a command injection vulnerability in Coolify, a server and application management tool. The flaw, present in versions prior to 4.0.0-beta.451, allows authenticated users with management permissions to execute arbitrary commands on managed servers as root by exploiting improper sanitization of a file storage parameter.

  • Authenticated users can run any command on servers.
  • This impacts systems managing applications, servers, and databases.
  • Confirm relevance and exposure of this management tool.

Attack Path

How an attacker could exploit the issue

An attacker with application management permissions could exploit this vulnerability by manipulating the File Storage Directory Mount Path functionality. This involves sending specially crafted input to the `file_storage_directory_source` parameter, which is then used in shell commands without proper validation. Successful exploitation allows an attacker to execute arbitrary commands as the root user on the managed server, potentially leading to full compromise of the host system.

  • Authenticated user with management permissions.
  • Unsanitized input in file storage parameter.
  • Arbitrary command execution as root.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an authenticated user with service management permissions to execute arbitrary commands as the root user on servers managed by Coolify. This could occur when the "File Storage Directory Mount Path" functionality is used, as the `file_storage_directory_source` parameter is not properly sanitized before being passed to shell commands.

  • Managed server root access.
  • Unsanitized input passed to shell.
  • Full system compromise possible.

Operational Fix

Recommended remediation, mitigation, and detection steps

The owners of Coolify, typically application or infrastructure teams, must first determine the scope of affected instances and their criticality. Coordinating with the vendor for timely updates or implementing temporary mitigations will be necessary steps to manage the risk posed by this vulnerability.

  • Application owners should manage the issue.
  • Verify instance reachability and criticality first.
  • Plan for coordinated updates or vendor engagement.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Coolify?

Coolify is an open-source, self-hosted platform used to manage servers, applications, and databases. It functions as a centralized hub that simplifies deployment and infrastructure administration, typically by acting as a web-accessible management portal for your technical resources.

What does command injection mean in CVE-2025-66213?

This vulnerability is a type of command injection (CWE-78). It occurs when a program takes user-provided input and passes it directly to the system's command shell without cleaning it first. In this case, an attacker can insert their own malicious instructions, forcing the server to run unintended commands with root-level privileges.

How is this vulnerability triggered?

The flaw is triggered by manipulating the File Storage Directory Mount Path feature. Specifically, an attacker sends crafted data through the file_storage_directory_source parameter. If a user lacks application or service management permissions within the platform, they cannot access or exploit this specific path.

Is my Coolify instance at risk?

According to Halo Surface Signal, Coolify is often deployed as a web-accessible portal, increasing the likelihood that instances are internet-facing. If your instance is reachable from the internet, the potential for unauthorized access is higher, making it important to verify your version regardless of where it is hosted.

How do I address this CVE?

The first step is to check your current version of Coolify. If you are running any version prior to 4.0.0-beta.451, you are affected. You should update your software to version 4.0.0-beta.451 or later, as this release includes the necessary sanitization fixes to block this injection vector.

References