CVE-2026-42153
Deferred Deferred - Pending Action

PostgreSQL Command Injection in Coolify

Vulnerability report for CVE-2026-42153, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-06

Last updated on: 2026-07-07

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-06
Last Modified
2026-07-07
Generated
2026-07-27
AI Q&A
2026-07-07
EPSS Evaluated
2026-07-25
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
coolify coolify to 4.0.0-beta.474 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Coolify, an open-source tool for managing servers, applications, and databases. Before version 4.0.0-beta.474, the PostgreSQL healthcheck command generation used database settings (postgres_user and postgres_db) that could be controlled by an authenticated user. These settings were incorporated into shell-form commands, which allowed the attacker to inject arbitrary commands that would be executed inside the database container.

Detection Guidance

This vulnerability involves command injection through PostgreSQL healthcheck commands in Coolify versions prior to 4.0.0-beta.474. Detection involves checking if your system is running a vulnerable version of Coolify and if the PostgreSQL healthcheck commands are constructed using user-controlled inputs without proper escaping.

To detect exploitation attempts or presence of this vulnerability, you can look for suspicious or malformed PostgreSQL user or database names that include shell metacharacters such as ;, |, $(), or backticks, which could indicate command injection attempts.

Since the vulnerability allows execution of arbitrary commands inside the PostgreSQL container, you can check for unexpected files or outputs created by injected commands. For example, the proof-of-concept creates a file /tmp/hc_rce.txt inside the container.

Suggested commands to detect signs of exploitation or vulnerability include:

  • Inspect running Coolify version: Check if the version is earlier than 4.0.0-beta.474.
  • Examine PostgreSQL user and database names for suspicious characters: Use SQL queries like `SELECT usename FROM pg_user;` or `SELECT datname FROM pg_database;` inside the PostgreSQL container.
  • Check for unexpected files created by injected commands inside the PostgreSQL container, e.g., `docker exec -it <postgres_container> ls /tmp` to look for files like hc_rce.txt.
  • Review Docker healthcheck commands in the container configuration to see if they use shell-form commands that interpolate user inputs.
Impact Analysis

An attacker who is authenticated can exploit this vulnerability to execute arbitrary commands within the database container. This can lead to a full compromise of the database environment, including unauthorized access, data manipulation, or destruction. The CVSS score of 8.8 indicates a high severity with impacts on confidentiality, integrity, and availability.

Compliance Impact

This vulnerability allows an authenticated user to inject commands executed in the database container, potentially leading to unauthorized access or modification of sensitive data.

Such unauthorized access or data manipulation could result in non-compliance with data protection regulations like GDPR and HIPAA, which require strict controls over data confidentiality, integrity, and availability.

Therefore, if exploited, this vulnerability could compromise compliance with these common standards by exposing sensitive information or disrupting system integrity.

Mitigation Strategies

To mitigate this vulnerability, upgrade Coolify to version 4.0.0-beta.474 or later, where the issue has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42153. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart