CVE-2026-42153 Coolify: PostgreSQL Healthcheck Command Injection Allows Root Code Execution in Container
An authenticated user can inject commands into PostgreSQL healthchecks, leading to root code execution within the database container.
- 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-42153?
CVE-2026-42153 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. Prior to 4.0.0-beta.474, PostgreSQL healthcheck command generation used attacker-controlled database settings (postgres_user and postgres_db) in shell-form commands, allowing an authenticated user to inject commands executed in the database container. This issue is fixed in version 4.0.0-beta.474.
Weakness: CWE-78
Which versions are affected by CVE-2026-42153?
How do I fix CVE-2026-42153?
No fix has been published for CVE-2026-42153 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-42153 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42153 exists.
Sources
Also known as GHSA-gvc4-f276-r88p.