Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Authenticated low-privilege user (PR:L) injects commands over the network with low complexity and no interaction, yielding full RCE on the managed host (C/I/A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.471, pre-deployment and post-deployment commands are single-quote escaped but then sent through SSH heredoc transport that preserves newlines, allowing an authenticated user to inject additional shell statements that execute on the remote server during deployment. This issue is fixed in version 4.0.0-beta.471.
AnalysisAI
Command injection in Coolify before 4.0.0-beta.471 lets an authenticated user break out of the pre-deployment and post-deployment command fields and run arbitrary shell statements on the target deployment server. The supplied commands are single-quote escaped but then piped through an SSH heredoc transport that preserves newlines, so newline-delimited injected statements survive escaping and execute during deployment. No public exploit is identified at time of analysis, though the fixing pull request and commit are public and make the root cause easy to reconstruct; CVSS is 8.8 (High).
Technical ContextAI
Coolify is an open-source, self-hostable platform-as-a-service (CPE cpe:2.3:a:coollabsio:coolify) that manages servers, applications, and databases and drives deployments over SSH. The flaw is CWE-78 (OS Command Injection): user-supplied pre/post-deployment commands are wrapped in single quotes to neutralize shell metacharacters, but the payload is then sent into a remote shell via an SSH heredoc (<<EOF ... EOF) that faithfully preserves embedded newlines. Single-quote escaping does nothing to stop a newline from terminating one command and beginning the next inside the heredoc body, so an attacker can smuggle additional statements that the remote shell executes with the privileges of the Coolify deployment process on the managed host.
RemediationAI
Vendor-released patch: upgrade Coolify to 4.0.0-beta.471 or later, which corrects how pre/post-deployment commands are handled before SSH heredoc transport (fix in PR #9173, commit ad95d65). If you cannot upgrade immediately, restrict who can configure deployment commands by limiting Coolify accounts to trusted operators and removing edit access to the pre/post-deployment command fields for lower-trust users, and audit existing resources for unexpected newline-containing command values - the trade-off is reduced self-service for team members. On multi-tenant instances, isolating each project's deployment onto a dedicated, non-privileged remote server account limits blast radius but adds operational overhead. Reference advisory GHSA-5qp8-9gg7-4c86 (https://github.com/coollabsio/coolify/security/advisories/GHSA-5qp8-9gg7-4c86) and the release notes at https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471.
Coolify, a self-hosted server management platform, allows authenticated users to inject OS commands through the Git Repo
A command injection vulnerability in Coolify's Database Backup functionality allows authenticated users with application
Coolify through v4.0.0-beta.434 exposes the root user's SSH private key to low-privileged team members. Any user with ba
Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,
Coolify before 4.0.0-beta.445 allows command injection through docker-compose.yaml parameters. If a victim creates an ap
Coolify versions prior to v4.0.0-beta.420.7 are vulnerable to a remote code execution vulnerability in the project deplo
Coolify versions prior to v4.0.0-beta.420.6 are vulnerable to a remote code execution vulnerability in the application d
Authenticated OS command injection in Coolify before 4.0.0-beta.471 lets any user holding destination management permiss
Authenticated remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.470 lets a low-privileged authentica
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. [CVSS 8.8 HIGH]
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0
An authenticated command injection vulnerability in Coolify's PostgreSQL initialization script handling allows attackers
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41990