CVE-2026-42201 Coolify: OS Command Injection via Database Credential Fields in Docker Compose Service Commands

Low 3.3 Published Updated

Attackers can execute arbitrary OS commands by injecting shell metacharacters into database credential fields within Docker Compose configurations.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-42201?

CVE-2026-42201 is a low-severity command injection vulnerability in coollabsio coolify, published on 7 Jul 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.474, database credential fields (redis_password, keydb_password, dragonfly_password, clickhouse_admin_user, clickhouse_admin_password, postgres_user, mysql_user) are validated only as 'string' at the API layer, with zero shell-safety checks. These values are then interpolated directly into Docker Compose YAML command: strings without any escaping. This issue is fixed in version 4.0.0-beta.474.

Weakness: CWE-78

Which versions are affected by CVE-2026-42201?

How do I fix CVE-2026-42201?

No fix has been published for CVE-2026-42201 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-42201 being exploited?

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

Sources

Also known as GHSA-f35h-g2c2-q36v.

Is CVE-2026-42201 in your software?

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

Check your SBOMs for free