Coolify Command Injection Vulnerability Allowing Arbitrary Code Execution

Vulnerability

A command injection vulnerability has been identified in Coolify, an open-source tool for managing servers, applications, and databases. This vulnerability exists in versions 4.0.0-beta.18 prior to 4.0.0-beta.253. It allows authenticated users to execute arbitrary code on the local Coolify container via SSH command injection. Exploitation of this vulnerability could lead to unauthorized access to sensitive data, including private keys and tokens of other users or teams. Additionally, it could allow attackers to modify the behavior of the application or its deployed services.

Impact

Exploitation of this vulnerability allows authenticated users to execute arbitrary commands on the Coolify container, with potential access to sensitive data and private keys of other users or teams. It also poses a risk to the availability and integrity of the application, as it could be used to disrupt services or modify application behavior.

Reproduction

The vulnerability can be reproduced by injecting a command that includes the SSH delimiter into the 'remote_process' function, which executes commands on remote servers via SSH. This can be done by exploiting the feature that allows custom commands for database imports or by using the command execution feature in application containers. Once the command is executed, the injected command can exfiltrate data, such as server IPs and private keys, through a crafted payload that bypasses the application's input sanitization.

Remediation

Users can update to Coolify version 4.0.0-beta.253 or later to address this vulnerability.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.6
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.