CVE-2025-66213: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in coollabsio coolify
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.
AI Analysis
Technical Summary
CVE-2025-66213 is an OS command injection vulnerability classified under CWE-78 affecting Coolify, an open-source, self-hostable platform for managing servers, applications, and databases. The vulnerability exists in versions prior to 4.0.0-beta.451 within the File Storage Directory Mount Path functionality. Specifically, the parameter file_storage_directory_source is incorporated directly into shell commands without proper input validation or sanitization. This improper neutralization of special elements allows an authenticated user with application or service management permissions to inject arbitrary shell commands. Because these commands execute with root privileges on the managed servers, an attacker can achieve full remote code execution, compromising the entire host system. The vulnerability does not require user interaction beyond authentication, and the attack complexity is low due to the direct injection vector. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no user interaction, and privileges required at the application/service management level, with high impact on confidentiality, integrity, and availability. The flaw was publicly disclosed on December 23, 2025, and patched in version 4.0.0-beta.451. No known exploits have been observed in the wild yet, but the critical nature of the vulnerability demands immediate remediation. This vulnerability poses a significant risk to environments relying on Coolify for infrastructure management, especially where multiple servers are managed centrally.
Potential Impact
The impact of CVE-2025-66213 is severe for organizations using vulnerable versions of Coolify. Exploitation leads to full remote code execution with root privileges on managed servers, allowing attackers to compromise confidentiality by accessing sensitive data, integrity by modifying or deleting data and configurations, and availability by disrupting services or deploying ransomware. Since Coolify is used to manage multiple servers and applications, a single exploited instance could lead to widespread compromise across an organization's infrastructure. The elevated privileges mean attackers can create persistent backdoors, move laterally within networks, and potentially escalate attacks to critical business systems. This vulnerability threatens organizations' operational continuity, data security, and compliance posture, especially in environments where Coolify is deployed in production or critical infrastructure management roles.
Mitigation Recommendations
To mitigate CVE-2025-66213, organizations should immediately upgrade Coolify to version 4.0.0-beta.451 or later, where the vulnerability is patched. Until the upgrade is applied, restrict access to the Coolify management interface to trusted administrators only, enforcing strict role-based access controls to limit users with application or service management permissions. Implement network segmentation and firewall rules to limit exposure of the Coolify management endpoints. Monitor logs for unusual command execution or privilege escalation attempts. Employ runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect anomalous shell command executions. Conduct thorough audits of server configurations and access permissions to ensure no unauthorized changes have occurred. Additionally, consider isolating Coolify-managed servers in controlled environments to reduce blast radius in case of compromise. Finally, educate administrators about the risks of command injection vulnerabilities and the importance of timely patching.
Affected Countries
United States, Germany, United Kingdom, France, Canada, Australia, Netherlands, Japan, South Korea, India
CVE-2025-66213: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in coollabsio coolify
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-66213 is an OS command injection vulnerability classified under CWE-78 affecting Coolify, an open-source, self-hostable platform for managing servers, applications, and databases. The vulnerability exists in versions prior to 4.0.0-beta.451 within the File Storage Directory Mount Path functionality. Specifically, the parameter file_storage_directory_source is incorporated directly into shell commands without proper input validation or sanitization. This improper neutralization of special elements allows an authenticated user with application or service management permissions to inject arbitrary shell commands. Because these commands execute with root privileges on the managed servers, an attacker can achieve full remote code execution, compromising the entire host system. The vulnerability does not require user interaction beyond authentication, and the attack complexity is low due to the direct injection vector. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no user interaction, and privileges required at the application/service management level, with high impact on confidentiality, integrity, and availability. The flaw was publicly disclosed on December 23, 2025, and patched in version 4.0.0-beta.451. No known exploits have been observed in the wild yet, but the critical nature of the vulnerability demands immediate remediation. This vulnerability poses a significant risk to environments relying on Coolify for infrastructure management, especially where multiple servers are managed centrally.
Potential Impact
The impact of CVE-2025-66213 is severe for organizations using vulnerable versions of Coolify. Exploitation leads to full remote code execution with root privileges on managed servers, allowing attackers to compromise confidentiality by accessing sensitive data, integrity by modifying or deleting data and configurations, and availability by disrupting services or deploying ransomware. Since Coolify is used to manage multiple servers and applications, a single exploited instance could lead to widespread compromise across an organization's infrastructure. The elevated privileges mean attackers can create persistent backdoors, move laterally within networks, and potentially escalate attacks to critical business systems. This vulnerability threatens organizations' operational continuity, data security, and compliance posture, especially in environments where Coolify is deployed in production or critical infrastructure management roles.
Mitigation Recommendations
To mitigate CVE-2025-66213, organizations should immediately upgrade Coolify to version 4.0.0-beta.451 or later, where the vulnerability is patched. Until the upgrade is applied, restrict access to the Coolify management interface to trusted administrators only, enforcing strict role-based access controls to limit users with application or service management permissions. Implement network segmentation and firewall rules to limit exposure of the Coolify management endpoints. Monitor logs for unusual command execution or privilege escalation attempts. Employ runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect anomalous shell command executions. Conduct thorough audits of server configurations and access permissions to ensure no unauthorized changes have occurred. Additionally, consider isolating Coolify-managed servers in controlled environments to reduce blast radius in case of compromise. Finally, educate administrators about the risks of command injection vulnerabilities and the importance of timely patching.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-11-24T23:01:29.678Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 694b149ad69af40f3136cc82
Added to database: 12/23/2025, 10:15:54 PM
Last enriched: 3/17/2026, 6:17:05 PM
Last updated: 3/25/2026, 9:56:39 AM
Views: 149
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.