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 stems from PostgreSQL healthcheck commands that incorporate attacker‑controlled database settings (postgres_user and postgres_db) into shell‑form commands. This permits an authenticated user with permission to set these values to inject arbitrary shell commands that run inside the database container. The result is that the attacker can execute any command within that container. Based on the description, it is inferred that this could potentially compromise database data and the underlying host if container isolation is broken. The flaw is a classic command injection (CWE‑78) and is classified with 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. The flaw requires authenticated users able to set the postgres_user and postgres_db values in healthcheck commands. Once the injection succeeds, the attacker can run arbitrary shell commands inside the PostgreSQL container. Based on the description, it is inferred that if the container process runs as root, the attacker would obtain root execution inside the container; otherwise the attacker is limited to the container user's privileges. The exploit does not directly escape the container, but weak or misconfigured container isolation could allow pivoting to other services or the host. The exploitation likelihood remains low due to the limited attack surface, but the impact of a successful exploit is severe.

Generated by OpenCVE AI on August 3, 2026 at 05:04 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 August 3, 2026 at 05:04 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

Status : Deferred

Published: 2026-07-06T22:16:49.383

Modified: 2026-07-07T14:16:30.477

Link: CVE-2026-42153

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T05:15:18Z

Weaknesses
  • CWE-78

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