CVE-2026-42204 Coolify: Authenticated RCE via SHELL_SAFE_COMMAND_PATTERN regression → host root

High 8.8 Published Updated

Authenticated users can inject shell commands via Docker Compose fields to execute code as root on the host.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-42204?

CVE-2026-42204 is a high-severity command injection vulnerability in coollabsio coolify, published on 6 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-42204?

How do I fix CVE-2026-42204?

No fix has been published for CVE-2026-42204 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-42204 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42204 exists.

Sources

Also known as GHSA-chg4-63hm-xv9x.

Is CVE-2026-42204 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free