External risk intelligence

Coolify Command Injection Vulnerability Allows Root Code Execution.

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2025-66211

Coolify is a self-hosted platform designed for managing servers, applications, and databases. As an administrative interface that manages external infrastructure, such tools are commonly deployed as internet-facing web portals or management dashboards. While it requires authentication, the nature of its role as an orchestration gateway makes public or remote-access deployment a common pattern.

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

A vulnerability has been identified in Coolify, an open-source server management tool, that allows authenticated users with specific permissions to execute arbitrary commands on managed servers. This is due to improper handling of PostgreSQL initialization script filenames, which can be exploited to gain root-level access. A fix is available in version 4.0.0-beta.451.

  • Allows unauthorized command execution on servers.
  • Could lead to compromise of managed systems.
  • Confirm relevance and exposure of the tool.

Attack Path

How an attacker could exploit the issue

An attacker with application or service management permissions can exploit this vulnerability by manipulating the filenames of PostgreSQL initialization scripts. These specially crafted filenames are not properly validated and are passed directly to shell commands, allowing the attacker to execute arbitrary commands with root privileges on the managed servers. This can lead to a complete compromise of the affected systems.

  • Authenticated access required.
  • Unvalidated script filenames trigger command execution.
  • Full root code execution on servers.

Live Threat

Current exploitation, exposure, and threat context

An authenticated command injection vulnerability in Coolify, when handling PostgreSQL initialization script filenames, could allow an attacker with application management permissions to execute arbitrary commands as the root user on managed servers. This could occur when the application processes these filenames without proper validation before passing them to shell commands, potentially impacting the integrity and availability of the managed systems.

  • Managed servers and their root access.
  • Unvalidated script filenames.
  • Complete system compromise.

Operational Fix

Recommended remediation, mitigation, and detection steps

The application owner and infrastructure teams are likely responsible for addressing this vulnerability in Coolify. The first practical step is to identify all deployed instances of Coolify, confirm their accessibility from the internet or other untrusted networks, and ascertain their business criticality. Once identified and prioritized, a plan for remediation, such as upgrading to a patched version or implementing compensating controls, should be developed in coordination with the relevant teams and potentially the vendor.

  • Identify affected Coolify instances.
  • Verify exposure and criticality of deployments.
  • Plan upgrade or risk reduction actions.

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 serves as an open-source, self-hosted management platform designed to orchestrate server infrastructure, web applications, and databases through a centralized dashboard interface.

What is the technical basis of CVE-2025-66211?

This vulnerability is classified as CWE-78, a command injection flaw. It occurs because the software fails to sanitize PostgreSQL initialization script filenames before passing them to the system shell, enabling unauthorized command execution.

How is this vulnerability triggered?

An authenticated user with application or service management permissions can trigger this flaw by providing crafted script filenames. The system processes these inputs without validation, allowing execution of arbitrary commands as root on the managed server.

Why is this issue significant?

According to the Halo Surface Signal, Coolify is commonly deployed as an internet-facing portal to manage external infrastructure. Because it acts as an orchestration gateway, this vulnerability presents a high risk of complete system compromise for exposed instances.

How should administrators respond to this flaw?

Infrastructure teams should audit their environments to locate all active Coolify deployments, assess their network exposure, and prioritize upgrading to version 4.0.0-beta.451 or later to implement the vendor-provided patch.

References