CVE-2026-42204
Deferred Deferred - Pending Action

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

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-07
Generated
2026-07-27
AI Q&A
2026-07-07
EPSS Evaluated
2026-07-25
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.

Detection Guidance

This vulnerability can be detected by identifying if your Coolify installation is running a vulnerable version between 4.0.0-beta.471 and 4.0.0-beta.473, where the SHELL_SAFE_COMMAND_PATTERN allowed ampersands in certain command fields, enabling command injection.

To detect exploitation attempts or presence of this vulnerability, you can check for suspicious or unexpected commands in the Docker Compose custom build, start, and pre/post-deployment command fields, especially those containing ampersands (&) or other shell command chaining characters.

Suggested commands to help detect potential exploitation or presence of malicious commands include:

  • Inspect the Coolify deployment configuration files or database entries for suspicious command strings containing '&' or other shell metacharacters in the docker_compose_custom_build_command or docker_compose_custom_start_command fields.
  • Use grep to search for ampersands in configuration or logs, for example: `grep -r '&' /path/to/coolify/config`
  • Monitor running containers for unexpected processes or commands that could indicate injected shell commands.
  • Check for unusual activity or commands executed by the coolify-helper container, which has access to the host's Docker socket.

Since the vulnerability requires authenticated deployment permissions, auditing user actions and deployment logs for suspicious command injections is also recommended.

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

This vulnerability allows an authenticated team member to inject shell commands that execute on the host, potentially leading to unauthorized access or control over the system.

Such unauthorized command execution can compromise the confidentiality, integrity, and availability of data managed by Coolify, which may include personal or sensitive information.

Therefore, this vulnerability could negatively impact compliance with standards and regulations like GDPR and HIPAA, which require strict controls to protect sensitive data and prevent unauthorized access.

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