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.
Published: 2026-07-06
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from PostgreSQL healthcheck command generation that incorporates attacker‑controlled database settings (postgres_user and postgres_db) into shell‑form commands. This allows an authenticated user to inject arbitrary shell commands that execute inside the database container with root privileges. The attack directly results in the ability to run any command as root within the container, potentially compromising database data and the underlying host if container isolation is broken. The flaw is a classic command injection (CWE‑78) and is classified as high severity.

Affected Systems

Coollabsio’s Coolify application, prior to version 4.0.0‑beta.474, is impacted. Users running self‑hosted Coolify instances with PostgreSQL healthchecks enabled and with authenticated database settings are within the scope of this vulnerability.

Risk and Exploitability

The CVSS score of 8.8 indicates high impact. The EPSS score is <1%, and the vulnerability is not listed in the CISA KEV catalog. Exploitation database credentials used in the healthcheck. Once the injection succeeds, the attacker obtains root-level execution inside the database container, which can be leveraged to alter data or pivot to other services if container isolation is inadequate. While the exploitation likelihood remains low due to the limited attack surface, the impact of a successful exploit is severe.

Generated by OpenCVE AI on July 23, 2026 at 14:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch by upgrading Coolify to version 4.0.0‑beta.474 or later
  • Restrict which users can modify the database configuration settings used in healthcheck commands
  • If an upgrade cannot be performed immediately, limit the privileges of accounts that can modify these settings or disable PostgreSQL healthchecks entirely until the patch is applied

Generated by OpenCVE AI on July 23, 2026 at 14:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Jul 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Coollabsio
Coollabsio coolify
Vendors & Products Coollabsio
Coollabsio coolify

Mon, 06 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title Coolify: PostgreSQL Healthcheck Command Injection Allows Root Code Execution in Container
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Coollabsio Coolify
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T13:46:55.120Z

Reserved: 2026-04-24T17:15:21.835Z

Link: CVE-2026-42153

cve-icon Vulnrichment

Updated: 2026-07-07T13:46:46.194Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T14:15:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')