Skip to main content

Coolify CVE-2026-34152

| EUVDEUVD-2026-41990 HIGH
OS Command Injection (CWE-78)
2026-07-07 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 with low-privilege Coolify account
  2. Delivery
    Edit resource pre/post-deployment command
  3. Exploit
    Inject newline-separated shell statement
  4. Execution
    Trigger deployment over SSH heredoc
  5. Persist
    Injected command runs on remote server
  6. Impact
    Achieve RCE and lateral movement on managed host

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 Coolify account (PR:L) with permission to set a resource's pre-deployment or post-deployment command field, and requires that a deployment of that resource actually run so the injected heredoc payload is transported over SSH and executed on the managed remote server. The specific enabling feature is the pre/post-deployment command configuration combined with SSH heredoc transport that preserves newlines. Limiting factors: exploitation is gated behind authentication and the ability to edit deployment commands, so a single-operator instance with no untrusted users has a much smaller attack surface; there is no unauthenticated path and no reported active exploitation.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) indicates a low-privilege authenticated user can achieve full CIA impact over the network with low complexity and no user interaction - a genuinely high-priority issue on any multi-user Coolify instance. The primary mitigating factor is PR:L: the attacker must already hold an authenticated Coolify account able to configure a resource's deployment commands, making this a tenant-isolation/privilege-escalation break rather than an unauthenticated internet-facing RCE. No EPSS score, KEV listing, or SSVC data was supplied, so exploitation probability cannot be quantified from the input and there is no evidence of active exploitation. The public fix commit and PR raise practical exploitability over time even though no packaged exploit is confirmed. Net: real and worth prompt patching on shared/multi-tenant deployments, lower urgency on single-operator instances where the only authenticated user is already fully trusted.

Exploit ScenarioDerived

An attacker holding a low-privileged but authenticated Coolify account creates or edits an application and sets a pre-deployment command containing a newline followed by an extra shell statement such as a reverse shell or credential-harvesting command. When the deployment runs, the single-quote escaping fails to neutralize the newline inside the SSH heredoc, so the injected statement executes on the remote managed server with the deployment process's privileges. No public exploit is identified, but the fix commit publicly reveals the vulnerable heredoc handling.

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 07, 2026

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

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.

Affected VersionsENISA

coolify < 4.0.0-beta.471

Affected Packages

euvd coolify fix: 4.0.0-beta.471

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

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

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

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

1
Patch available
Jul 07, 2026 - 05:01 EUVD

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

Executive ViewAI

Why It Matters

A command injection vulnerability in Coolify before 4.0.0-beta.471 allows authenticated users to execute arbitrary code on all servers managed through the platform during deployments. No public exploit has been identified at time of analysis; however, this represents high risk for organizations, as any Coolify-authenticated insider or compromised account could potentially compromise critical infrastructure managed through the platform.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Limit Coolify access to trusted administrators with multi-factor authentication; (2) Implement comprehensive audit logging of all pre/post-deployment commands; (3) Enforce code review and approval workflows for all deployment commands; (4) Implement network segmentation to restrict lateral movement from deployment servers to production infrastructure; (5) Monitor deployment servers for unauthorized command execution.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
popular open-source self-hosted PaaS, limited enterprise footprint
Social Media
2
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
None
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