All vulnerabilities

Servers and applications

CVE-2026-42204

Authenticated RCE via SHELL_SAFE_COMMAND_PATTERN regression → host root

Severity
High 8.8
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.474
Exploit chance
0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-chg4-63hm-xv9x
Sources
Project advisories (GitHub)

Description

The fix for the private advisory GHSA-qqrq-r9h4-x6wp (commit 23f9156c7) introduced a strict SHELL_SAFE_COMMAND_PATTERN. Two later commits relaxed it to allow &, ", '. Allowing & reopens command injection: in bash, cmd1 & cmd2 runs both. Any team Member can put a payload in docker_compose_custom_build_command / docker_compose_custom_start_command, deploy, and execute code in the coolify-helper container — which has /var/run/docker.sock mounted, giving root on the host.

app/Support/ValidationPatterns.php:47

Regressed by:

  • e2ba44d0c (2026-03-25) — added &, " ("to support && chaining")
  • e36ae82d9 (2026-04-08) — added '

A character-class regex cannot tell & (background separator) from && (logical AND).

app/Jobs/ApplicationDeploymentJob.php:730

bootstrap/helpers/docker.php:145 (only escapes ', lets & through):

coolify-helper container is launched at ApplicationDeploymentJob.php:2038 with -v /var/run/docker.sock:/var/run/docker.sock → code execution inside it = host root via docker…

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

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • From 4.0.0-beta.471 before 4.0.0-beta.474

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