Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Coolify with app-edit rights
-
DeliveryInject single quote into custom build/start command
-
ExploitBreak out of quoted shell context
-
ExecutionTrigger application deployment
-
PersistExecute arbitrary command on host
-
ImpactEscape container to full host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Coolify account with permission to edit application settings (CVSS PR:L), and specifically the ability to set the docker_compose_custom_build_command or docker_compose_custom_start_command fields with a single-quote-containing payload. The injected command only fires when a deployment of that application executes, so a build/deploy must be triggered. Exploitation is limited to Coolify instances prior to 4.0.0-beta.469 where the attacker can reach and modify these deployment command fields; it does not require special OS-level configuration, but it does require the application-edit privilege, which bounds the attacker population to existing operators/tenants rather than fully unauthenticated internet users. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 8.8 HIGH) indicates network-reachable, low-complexity exploitation requiring only low privileges (an account able to edit application settings) and no user interaction, with full confidentiality/integrity/availability impact. The real-world severity is amplified because the injected commands run on the host and escape Docker container confinement, effectively granting host-level command execution to any tenant/operator who can configure an application. No EPSS score, KEV listing, POC, or SSVC decision data was supplied, so exploitation-probability signals are absent; the assessment therefore rests on the CVSS vector and the vendor advisory description alone. The main mitigating factor is the PR:L requirement - an attacker must already hold an authenticated account with application-edit rights - which makes this most dangerous in multi-user/multi-tenant Coolify deployments or where such accounts are loosely provisioned. Note: the vendor description of host command execution escaping container confinement arguably implies a scope change (S:C), whereas the supplied vector uses S:U - verify with the vendor. |
| Exploit ScenarioDerived | An attacker holding a low-privileged Coolify account with rights to edit an application sets docker_compose_custom_build_command (or the custom start command) to a value containing a single quote followed by injected shell syntax, e.g. closing the quoted context and appending a reverse-shell or data-exfiltration command. When a deployment runs, executeInDocker() builds the unescaped command string and the injected payload executes on the managed host outside container confinement. No user interaction is required beyond triggering the deployment; no public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 07, 2026
OS command injection in Coolify, the open-source self-hostable server/application/database management PaaS, allows an authenticated user with permission to edit application settings (versions prior to 4.0.0-beta.469) to run arbitrary commands on the managed host. The flaw lives in the executeInDocker() helper, which wraps user-controlled values in single quotes without escaping embedded quotes, letting an attacker break out of the quoted shell context during deployments and escape the intended Docker container confinement. No public exploit identified at time of analysis; this is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade Coolify to version 4.0.0-beta.469 or later, which fixes the improper quoting in executeInDocker(), as documented in advisory GHSA-j6j2-frv3-g6f7 (https://github.com/coollabsio/coolify/security/advisories/GHSA-j6j2-frv3-g6f7). If immediate upgrade is not possible, restrict who can edit application settings by tightening account provisioning and removing application-edit permissions from untrusted or non-administrative users, since exploitation requires that privilege (trade-off: limits legitimate self-service deployment configuration). As an additional compensating control, avoid granting Coolify management accounts to untrusted parties on shared/multi-tenant instances and audit the docker_compose_custom_build_command and docker_compose_custom_start_command fields for embedded single quotes or shell metacharacters (trade-off: manual review does not scale and can be bypassed by novel payloads). Isolating the Coolify host and monitoring deployment processes for unexpected child commands can help detect abuse until patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coolify is a Laravel/PHP-based self-hosted deployment platform (an open-source alternative to Heroku/Netlify) that orchestrates Docker containers on managed servers. The vulnerable executeInDocker() helper constructs shell command strings by naively wrapping user-supplied fields - specifically docker_compose_custom_build_command and docker_compose_custom_start_command - in single quotes. Because embedded single quotes are not escaped or sanitized, this is a classic CWE-78 (Improper Neutralization of Special Elements used in an OS Command) shell-metacharacter breakout: a payload containing a single quote terminates the intended quoted argument and appends attacker-controlled shell syntax. The injected command executes in the deployment context on the host operating system rather than inside the confined container.
Know when Coolify gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable web UI (AV:N/AC:L), requires an app-edit account (PR:L), no interaction (UI:N); command escapes container to the host so scope changes (S:C) with full host C/I/A impact.
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.469, the executeInDocker() helper wraps user-controlled commands in single quotes without escaping embedded single quotes. Attackers who can edit application settings can inject a single quote into docker_compose_custom_build_command or docker_compose_custom_start_command to break out of the quoted context and execute arbitrary commands on the managed server host during deployments, escaping the intended Docker container confinement. This issue is fixed in version 4.0.0-beta.469.
Executive ViewAI
Coolify versions prior to 4.0.0-beta.469 expose an OS command injection vulnerability allowing authenticated users with application settings edit permissions to execute arbitrary commands on the managed host. This directly compromises all applications and databases managed through affected instances. Organizations must immediately restrict access to application settings to prevent unauthorized command execution and infrastructure compromise.
Restrict application settings editor permissions to administrator-only users; enforce principle of least privilege for all Coolify accounts; implement network segmentation isolating Coolify environment from production infrastructure; enable comprehensive audit logging of all deployments and settings changes; monitor container execution logs for suspicious command patterns; review and document all users with application edit permissions for immediate access revocation if not essential.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in Coolify Server Management Platform Multiple Flaws
View all 16Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,
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
Command injection in Coolify up to and including v4.0.0-beta.434 lets any authenticated low-privileged 'member' execute
Remote code execution on the host OS is possible through Coolify's application deployment workflow prior to version 4.0.
Authenticated command injection in Coolify's PostgreSQL initialization-script filename handling allows users with applic
Coolify versions prior to 4.0.0-beta.451 pass user-supplied database names unsanitized into shell commands executed via
Authenticated Coolify users who hold application or service management permissions can execute arbitrary commands as roo
Authenticated command injection in Coolify before 4.0.0-beta.451 lets users with application or service management permi
Stored cross-site scripting in Coolify versions up to and including v4.0.0-beta.420.6 lets an authenticated low-privileg
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
EUVD-2026-41998
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB