Skip to main content

Coolify CVE-2025-59157

HIGH
OS Command Injection (CWE-78)
2026-01-05 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as regular member
  2. Delivery
    Create project with malicious Git Repository field
  3. Exploit
    Injected shell command runs during deploy workflow
  4. Execution
    Execute arbitrary commands on host
  5. Impact
    Full compromise of Coolify server

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

Requires an authenticated regular MEMBER account on the target Coolify instance (PR:L) - not admin, but not anonymous either, so the instance must have multiple/less-trusted users or allow member registration. The attacker must be able to create a project and populate the Git Repository field, and the injected commands only fire when the deployment workflow for that project runs (self-triggerable by the attacker, no separate victim interaction, UI:N). Affected: all Coolify versions prior to 4.0.0-beta.420.7. Limiting factors: single-operator/self-only instances with no untrusted members have effectively no exposure, since every member already controls deployments.

Impact

Multiple signals converge on a genuine but access-gated priority. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8 High) is well-founded: command injection in the Git Repository field yields full CIA impact via shell execution on the Coolify host during the deployment workflow. The critical limiting signal is PR:L - the advisory explicitly states a 'regular member user' can exploit it, so this is NOT unauthenticated internet-facing RCE; an attacker needs a valid member account on the Coolify instance first. POC/exploit code is publicly available (referenced in the GHSA advisory), which raises practical exploitability, but this must NOT be conflated with active exploitation - there is no CISA KEV listing. EPSS is modest at 0.26% (49th percentile), consistent with a vulnerability that has public detail but no evidence of mass exploitation, pointing to targeted (insider/tenant-abuse) rather than widespread opportunistic use. Net: a real priority for any multi-tenant or team-shared Coolify deployment where member accounts are not fully trusted, but the authentication barrier meaningfully lowers real-world risk versus the raw 8.8.

Exploit ScenarioDerived

An attacker holding a regular member account on a shared Coolify instance creates a project and enters a malicious payload in the Git Repository field; because the input is passed unsanitized into a shell command during deployment, injected commands execute on the underlying host as the Coolify service context, yielding RCE. Public exploit code referenced in the GHSA advisory lowers the skill required, and with AC:L the injection is reliably triggered once the deploy workflow runs.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Sep 30, 2026

Command injection in Coolify's Git Repository field during project creation allows an authenticated member account to run arbitrary shell commands on the self-hosted Coolify server when the project's deployment workflow executes. All releases prior to 4.0.0-beta.420.7 are affected, and publicly available exploit code exists, so member-restricted instances that permit untrusted or self-registered users carry real risk. Exploitation is access-gated rather than anonymous: the CVSS vector (PR:L, AV:N, UI:N) confirms a low-privileged authenticated attacker is required, and the EPSS score of 0.26% (49th percentile) indicates low observed exploitation activity with no CISA KEV listing at time of analysis.

Earlier versions of this analysis (2)
v2 Sep 30, 2026 - 23:12 cvss changed CVSS 8.8

Command injection in the Git Repository field used during project creation in Coolify allows any authenticated member-level user to execute arbitrary shell commands on the underlying host as the deployment workflow processes the unsanitized input. All Coolify installations prior to version 4.0.0-beta.420.7 are affected, and although exploitation requires a valid non-admin account with project-creation access (PR:L), the resulting impact is full compromise of confidentiality, integrity, and availability (CVSS 8.8). Publicly available exploit code exists, while EPSS remains low at 0.26% (49th percentile), suggesting the flaw is real and trivially reachable but not yet seeing broad opportunistic scanning; instances that hand out member accounts to semi-trusted or untrusted users, such as multi-tenant or team deployments, carry the greatest practical risk.

v1 Mar 12, 2026 - 21:54 CVSS 9.9

Coolify allows command injection via the Git Repository field during project creation, enabling authenticated users to execute commands as root.

RemediationAI

Upgrade Coolify to 4.0.0-beta.420.7 or later - this is the vendor-released patch version and the only complete fix; see the GitHub security advisory at https://github.com/coollabsio/coolify/security/advisories/GHSA-5cg9-38qj-8mc3. Where an immediate upgrade is not possible, the most effective compensating control is to remove the vulnerable privilege path: disable member self-registration and restrict project-creation rights so only fully trusted administrators can supply a Git Repository value, since the injection requires an authenticated member account and fires on that member's own deployment. Operators of single-user or single-operator instances have effectively no exposure and can schedule the upgrade normally. Additional hardening with trade-offs: run the Coolify control plane in an isolated network segment or container host separate from production workloads so an injected command does not inherit reach to managed servers, and audit/rotate the SSH keys and deployment credentials Coolify holds, acknowledging that restricting or downgrading those credentials will break automated deployments. Because exploitation is confirmed feasible by publicly available exploit code, member accounts and their deployment logs should be reviewed for unexpected shell activity until the patch is applied.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a classic OS command injection (CWE-78) in Coolify, an open-source, self-hostable control plane that manages servers, applications, and databases and whose deployment workflow shells out to Git and other system tooling. When a user creates a project, the Git Repository field is passed into a shell-invoked deployment/checkout routine without adequate sanitization or argument escaping, so shell metacharacters or command separators embedded in the repository string are interpreted by the shell rather than treated as literal data. Because Coolify orchestrates deployments over SSH and runs with credentials capable of managing target hosts, the injection executes with the Coolify server process's privileges rather than being confined to a sandboxed build step. CPE data (cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:* and explicit 4.0.0 beta100 through beta108 builds) confirms the entire pre-4.0.0-beta.420.7 release line, including the early 4.0.0 beta channel, is in scope.

Severity by source

NVD 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 web UI with low-complexity injection needing only a regular member account (PR:L), no user interaction, and host command execution yielding full CIA (C:H/I:H/A:H).

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 NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Analysis Updated
Sep 30, 2026 - 23:12 vuln.today
v3 - CVSS changed
Analysis Updated
Sep 30, 2026 - 23:12 vuln.today
v2 - CVSS changed
Severity Changed
Sep 30, 2026 - 22:23 NVD
CRITICAL HIGH
CVSS changed
Sep 30, 2026 - 22:23 NVD
9.9 (CRITICAL) 8.8 (HIGH)
PoC Detected
Jan 12, 2026 - 15:02 vuln.today
Public exploit code
CVE Published
Jan 05, 2026 - 18:15 nvd
CRITICAL 9.9

DescriptionNVD

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.420.7, the Git Repository field during project creation is vulnerable to command injection. User input is not properly sanitized, allowing attackers to inject arbitrary shell commands that execute on the underlying server during the deployment workflow. A regular member user can exploit this vulnerability. Version 4.0.0-beta.420.7 contains a patch for the issue.

Executive ViewAI

Why It Matters

Coolify self-hosted deployments running releases prior to 4.0.0-beta.420.7 are affected by a high-severity command injection flaw that lets a low-privileged authenticated member execute arbitrary shell commands on the Coolify server during project deployment. This creates organizational risk of infrastructure compromise, credential theft, and supply-chain tampering, particularly where self-registration or untrusted member accounts are permitted. Leadership should prioritize remediation because publicly available exploit code exists, no vendor-released patch was identified at time of analysis, and the blast radius extends to any secrets or downstream systems managed by the Coolify server.

Business Impact: High
Compensating Controls

No vendor patch is available; restrict project creation and Git repository edits to trusted administrators, disable self-registration and untrusted member accounts, enforce least privilege, isolate Coolify servers via network segmentation, rotate secrets, monitor deployment workflows for anomalous command execution, and consider temporary read-only or approval-based deployment controls.

Threat Intelligence Overview

EPSS Score
0.3%
Top 51% exploitable
Prevalence
Medium
popular open-source self-hostable PaaS, common in dev/small-team ops but not ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 Yes
EPSS 0.3%
Patch available No
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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.

Affected Products (CPE)NVD

cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta104:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta105:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta106:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta107:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta108:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta109:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta110:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta111:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta112:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta113:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta114:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta115:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta116:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta117:*:*:*:*:*:*
cpe:2.3:a:coollabs:coolify:4.0.0:beta118:*:*:*:*:*:*
+ 388 more
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