CVE-2026-27955

Coolify: Command Injection via Single-Quote Breakout in `executeInDocker()`

Published Jun 30, 2026 CVSS 3.1 · 6.6 Medium EPSS < 1% KEV · Not listed
Description
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.464, the executeInDocker() helper wraps commands in bash -c '{$command}' without escaping single quotes. User-controlled docker_compose_custom_build_command and docker_compose_custom_start_command fields are interpolated directly, allowing a single quote to break out of the bash -c argument and execute commands on the managed server host (outside the intended Docker container context). This vulnerability is fixed in 4.0.0-beta.464.

Analysis

AI-generated

Technical impact

The flaw exists in Coolify’s executeInDocker() helper, which wraps user-supplied commands in a bash -c string without escaping single quotes. This allows a single‑quote injection that escapes the intended argument and executes arbitrary shell commands on the host, outside the Docker container. The vulnerability can be immediately exploited to run any commands with the host’s privileges and was addressed by upgrading to version 4.0.0‑beta.464.

Affected Systems

All installations of Coollabsio Coolify that are running a version before 4.0.0‑beta.464 and expose the docker_compose_custom_build_command or docker_compose_custom_start_command fields are vulnerable. Anyone with write access to these fields can trigger the injection. No other Coolify releases or components are affected.

Risk and Exploitability

The CVSS score of 6.6 indicates a moderate severity, and the EPSS score is not available, so the current exploitation probability is unknown. The vulnerability is not listed in the CISA KEV catalog, but it provides a clear attack path: an authenticated user who can modify the custom command fields can execute commands on the host. Because the impact is full remote command execution, the risk remains significant, especially for environments where untrusted users have write access to those fields.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Coolify to version 4.0.0‑beta.464 or newer.
  • Disable or restrict the docker_compose_custom_build_command and docker_compose_custom_start_command fields for all users who should not be able to run arbitrary commands.
  • Implement proper input validation and escape single quotes in any user‑supplied command string to eliminate injection vectors.

Generated by OpenCVE AI on June 30, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Coollabsio
Coollabsio coolify
Vendors & Products Coollabsio
Coollabsio coolify
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.464, the executeInDocker() helper wraps commands in bash -c '{$command}' without escaping single quotes. User-controlled docker_compose_custom_build_command and docker_compose_custom_start_command fields are interpolated directly, allowing a single quote to break out of the bash -c argument and execute commands on the managed server host (outside the intended Docker container context). This vulnerability is fixed in 4.0.0-beta.464.
Title Coolify: Command Injection via Single-Quote Breakout in `executeInDocker()`
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 6.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 30, 2026, 3:01 PM
Reserved
Feb 25, 2026, 3:11 AM
Status
Deferred
Published
Jun 30, 2026, 3:16 PM
Modified
Oct 25, 2026, 9:10 PM