CVE-2026-42148
Deferred Deferred - Pending Action

Command Injection in Coolify Prior to 4.0.0-beta.474

Vulnerability report for CVE-2026-42148, 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, the buildHelperImage method in app/Livewire/Settings/Index.php constructs a Docker build command using the dev_helper_version field without shell escaping, allowing an attacker who can set the helper version and trigger the helper image build in a development environment to execute arbitrary commands on the server. 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-16
AI Q&A
2026-07-07
EPSS Evaluated
2026-07-14
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 buildHelperImage method in the file app/Livewire/Settings/Index.php constructs a Docker build command using the dev_helper_version field without properly escaping shell commands. This means that an attacker who can set the helper version and trigger the helper image build in a development environment can execute arbitrary commands on the server.

Impact Analysis

The vulnerability allows an attacker with the ability to set the helper version and trigger the helper image build in a development environment to execute arbitrary commands on the server. This could lead to unauthorized actions such as modifying files, stealing data, or disrupting services on the affected server.

Mitigation Strategies

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

Avoid allowing untrusted users to set the dev_helper_version field or trigger the helper image build in development environments.

Compliance Impact

The vulnerability allows an authenticated attacker to execute arbitrary commands on the server, potentially leading to data exfiltration or lateral movement within the network.

Such unauthorized access and potential data breaches could impact compliance with standards and regulations like GDPR and HIPAA, which require protection of sensitive data and prevention of unauthorized access.

However, the vulnerability is rated as low severity (CVSS 3.8) due to the need for authenticated access and complexity of exploitation, and it is limited to development environments.

Detection Guidance

This vulnerability involves command injection through the dev_helper_version field used in Docker build commands within Coolify versions prior to 4.0.0-beta.474. Detection involves identifying if an affected version of Coolify is running and if the dev_helper_version field can be manipulated.

To detect potential exploitation or presence of the vulnerability on your system, you can:

  • Check the Coolify version to confirm if it is older than 4.0.0-beta.474.
  • Audit logs or command histories for suspicious Docker build commands that include unusual or unexpected shell characters or commands injected via the dev_helper_version field.
  • Monitor for unexpected processes or reverse shell connections that could indicate exploitation.

Suggested commands to assist detection:

  • Check Coolify version (adjust path as needed): `coolify --version` or check the application version in the UI or deployment manifests.
  • Search for suspicious Docker build commands in logs: `grep -r "docker build" /var/log/`
  • Look for suspicious shell characters or command injection patterns in dev_helper_version settings stored in configuration files or databases.
  • Monitor running processes for unexpected shells: `ps aux | grep sh` or `netstat -tulnp` to detect unusual network connections.

Chat Assistant

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

EPSS Chart