
Public security advisory for CVE-2025-66209, CVE-2025-66210, CVE-2025-66211, CVE-2025-66212, and CVE-2025-66213
Reporter: 0xrakan
Vendor: coollabsio/coolify
Affected Versions: < v4.0.0-beta.451
Fixed Version: v4.0.0-beta.451
Severity: Critical (CVSS 9.4)
Five critical authenticated command injection vulnerabilities were discovered in Coolify that allow authenticated users with application/service management permissions to execute arbitrary commands as root on managed servers, leading to container escape and full host system compromise.
GHSA ID: GHSA-cj2c-9jx8-j427
Severity: Critical (CVSS 9.4)
CWE: CWE-78 (OS Command Injection)
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.
Impact:
GHSA ID: GHSA-q7rg-2j7p-83gp
Severity: Critical (CVSS 9.4)
CWE: CWE-78 (OS Command Injection)
An authenticated command injection vulnerability in the Dynamic Proxy Configuration Filename handling allows users with application/service management permissions to execute arbitrary commands as root on managed servers. Proxy configuration filenames are passed to shell commands without proper escaping, enabling full remote code execution.
Impact:
GHSA ID: GHSA-24mp-fc9q-c884
Severity: Critical (CVSS 9.4)
CWE: CWE-78 (OS Command Injection)
An authenticated command injection vulnerability in PostgreSQL Init Script Filename handling allows users with application/service management permissions to execute arbitrary commands as root on managed servers. PostgreSQL initialization script filenames are passed to shell commands without proper validation, enabling full remote code execution.
Impact:
GHSA ID: GHSA-vm5p-43qh-7pmq
Severity: Critical (CVSS 9.4)
CWE: CWE-78 (OS Command Injection)
An authenticated command injection vulnerability in the Database Backup functionality allows users with application/service management permissions to execute arbitrary commands as root on managed servers. Database names used in backup operations are passed directly to shell commands without sanitization, enabling full remote code execution.
Impact:
GHSA ID: GHSA-q33h-22xm-4cgh
Severity: Critical (CVSS 9.4)
CWE: CWE-78 (OS Command Injection)
An authenticated command injection vulnerability in the Database Import functionality allows users with application/service management permissions to execute arbitrary commands as root on managed servers. Database names used in import operations are passed directly to shell commands without sanitization, enabling full remote code execution.
Impact:
All five vulnerabilities stem from insufficient input validation and sanitization of user-controlled parameters that are subsequently passed to shell commands. The affected functionality processes database names, file paths, and configuration filenames without proper escaping, allowing shell metacharacters to be injected and executed.
Since Coolify runs with elevated privileges to manage Docker containers and host system operations, successful exploitation of any of these vulnerabilities leads to command execution as the root user on the host system, effectively achieving container escape and complete host compromise.
Technical details and proof-of-concept exploits are being withheld to allow users additional time to upgrade. All vulnerabilities have been patched in v4.0.0-beta.451.
Upgrade to v4.0.0-beta.451 or later immediately.
The Coolify development team has implemented comprehensive input validation and shell argument escaping across all affected functionality to prevent command injection attacks.
CVE.org Records:
Discovered and reported by: 0xrakan
Fixed by: Coolify development team (@andrasbacsi)
| CVE ID | CVE.org Link | GHSA ID | Component | Status |
|---|
| CVE-2025-66213 | View | GHSA-cj2c-9jx8-j427 | File Storage Directory Mount Path | Patched |
| CVE-2025-66212 | View | GHSA-q7rg-2j7p-83gp | Dynamic Proxy Configuration Filename | Patched |
| CVE-2025-66211 | View | GHSA-24mp-fc9q-c884 | PostgreSQL Init Script Filename | Patched |
| CVE-2025-66209 | View | GHSA-vm5p-43qh-7pmq | Database Backup | Patched |
| CVE-2025-66210 | View | GHSA-q33h-22xm-4cgh | Database Import | Patched |