All vulnerabilities

Servers and applications

CVE-2026-27955

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

Severity
Medium 6.6
Published
25 Jun 2026
Last changed
25 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.464
Exploit chance
0.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
Also known as
GHSA-6h8g-wpxp-cq98
Sources
Project advisories (GitHub)

Description

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

The codebase demonstrates awareness of this issue — build_args_string and post_deployment_command are escaped with str_replace("'", "'\''", ...) — but the custom compose command fields are not.

The codebase escapes single quotes for executeInDocker() in some code paths but not others:

Comments at lines 692 and 724 explicitly state: // Escape single quotes for bash -c context used by executeInDocker — proving the developers understand the risk but failed to apply the defense consistently.

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.0.0-beta.464

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
4,970,195Docker Hub, 15 Nov 2026
GitHub stars
66,095GitHub, 15 Nov 2026
Forks
5,989GitHub, 15 Nov 2026
Latest release
v4.7.5GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References