CVE-2026-42204
Received Received - Intake

Command Injection in Coolify via Docker Compose Commands

Vulnerability report for CVE-2026-42204, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-06

Last updated on: 2026-07-06

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-06
Last Modified
2026-07-06
Generated
2026-07-07
AI Q&A
2026-07-07
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
coolify coolify From 4.0.0-beta.471 (inc) to 4.0.0-beta.473 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Coolify versions 4.0.0-beta.471 through 4.0.0-beta.473 due to a regression in the SHELL_SAFE_COMMAND_PATTERN. It allows ampersands to be used in custom Docker Compose build, start, and pre/post-deployment command fields.

Because of this, an authenticated team member can inject shell commands that will execute on the host system, potentially leading to unauthorized command execution.

The issue is fixed in version 4.0.0-beta.474.

Impact Analysis

This vulnerability can have a significant impact because it allows an authenticated user to execute arbitrary shell commands on the host system.

  • Potential unauthorized access or control over the host system.
  • Compromise of confidentiality, integrity, and availability of the system and data.
  • Possible disruption of services or deployment processes managed by Coolify.
Mitigation Strategies

To mitigate this vulnerability, upgrade Coolify to version 4.0.0-beta.474 or later, where the issue has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42204. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart