CVE-2026-42148: Coolify Command Injection in Development Helper Image Build
Coolify, a self-hosted platform for managing servers and applications, contains a command injection vulnerability in its development helper image build function. An attacker with administrative access who can modify the helper version setting and trigger a build can execute arbitrary commands on the underlying server. The vulnerability is limited to development environments and requires elevated privileges and user interaction, significantly constraining real-world impact. The issue was patched in version 4.0.0-beta.474.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.8 LOW · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
- Weaknesses (CWE)
- CWE-78
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-06 / 2026-07-07
NVD description (verbatim)
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.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-42148 is a OS command injection vulnerability (CWE-78) in Coolify's buildHelperImage method located in app/Livewire/Settings/Index.php. The method constructs a Docker build command by directly interpolating the dev_helper_version field without shell escaping or sanitization. An authenticated user with administrative privileges can inject shell metacharacters into this field, and when the helper image build is triggered, those commands execute with the privileges of the Coolify process. The attack surface is restricted to development environments where this functionality is accessible.
Business impact
Organizations using Coolify in development environments face a localized command execution risk, but the threat is substantially mitigated by the required privileges (administrator account), user interaction needed to trigger the build, and the local-only attack surface. Production deployments are unaffected. For development teams, the practical impact depends on the sensitivity of the development infrastructure and whether non-trusted users have administrative access. The low CVSS score (3.8) reflects these constraints.
Affected systems
Coolify versions prior to 4.0.0-beta.474 are affected. The buildHelperImage method is part of the core Settings module, so any Coolify installation running an earlier version is technically vulnerable, though exploitation requires specific conditions: administrative access, the ability to modify the dev_helper_version setting, and the ability to trigger a helper image build in a development context.
Exploitability
Exploitation requires three conditions to align: an attacker must possess administrative credentials or deceive an administrator into performing the malicious action, modify the dev_helper_version field to include shell injection payloads, and trigger the helper image build process. These prerequisites significantly reduce the practical exploitability. The vulnerability is not remotely exploitable without prior authentication and privilege compromise. There is no evidence of active exploitation or inclusion in public exploit databases.
Remediation
Upgrade Coolify to version 4.0.0-beta.474 or later. The patch implements proper shell escaping for the dev_helper_version parameter before constructing the Docker command. Organizations should verify the update is applied and confirm the helper image build function operates normally post-patch. For development teams unable to upgrade immediately, restrict administrative access to trusted personnel only and monitor for suspicious modifications to helper version settings.
Patch guidance
Coolify maintainers released version 4.0.0-beta.474 as the remedial version. Users should update through Coolify's standard update mechanism. Verify the patched version is running by checking the Coolify dashboard or logs. If your deployment is still in beta versions, prioritize upgrading to the patched beta release or the next stable release when available. Test the update in a non-production environment first to ensure compatibility with custom configurations.
Detection guidance
Monitor Coolify application logs and system audit logs for: (1) modifications to the dev_helper_version field in the Settings module, particularly entries containing shell metacharacters (pipes, semicolons, backticks, dollar signs, or parentheses); (2) Docker build command executions with unexpected parameters or commands; (3) process execution events spawned by the Coolify application process that appear anomalous. Check Coolify's version regularly to ensure you are not running a vulnerable release. Consider enabling verbose logging in development environments to capture build activity.
Why prioritize this
Although the CVSS score is low (3.8), this is a command injection vulnerability that yields arbitrary code execution. However, prioritization should be tempered by the stringent prerequisites: administrative access, local attack surface, and required user interaction. Development teams using Coolify should patch within their normal maintenance cycle. Organizations that restrict administrative access to trusted staff can deprioritize this below critical infrastructure vulnerabilities, but should still schedule a patch within 30–60 days. If your development environment is accessible to untrusted users or contractors, elevate the timeline to immediate action.
Risk score, explained
The CVSS:3.1 score of 3.8 (LOW) reflects a vulnerability that, while technically severe (arbitrary command execution), is constrained by attack vector (Local), attack complexity (High—user interaction required), required privilege level (High—administrator), and user interaction requirement. The scope is unchanged and the confidentiality, integrity, and availability impacts are rated low because the actual damage depends on the environment's value and the attacker's objectives. In a high-trust development environment, the score fairly represents the risk; in a multi-tenant or adversarial development setup, operational risk may be higher.
Frequently asked questions
Does this affect Coolify in production environments?
No. The vulnerability is specific to the development helper image build function and requires access to development-specific settings. Production instances that do not expose or use this functionality are not at risk from this particular issue.
Can this be exploited remotely?
No. The attacker must have administrative access to the Coolify instance and be able to trigger the helper image build locally or via the authenticated web interface. There is no remote unauthenticated path to exploitation.
What should I do if I cannot update immediately?
Restrict administrative access in your Coolify instance to only trusted team members, monitor the dev_helper_version setting for unauthorized changes, and avoid building helper images in untrusted environments. Plan an update for the next available maintenance window.
How do I confirm my Coolify version is patched?
Log into your Coolify dashboard and check the version number in the Settings or About section. Verify it is 4.0.0-beta.474 or later. If you are unsure, consult your deployment logs or the Coolify GitHub releases page to compare your current version.
This analysis is provided for informational purposes based on the published CVE record. SEC.co does not provide guarantees regarding the completeness or accuracy of third-party vendor security advisories. Organizations should verify all patch versions and compatibility against the official Coolify repository and documentation. This assessment does not constitute professional security advice; consult your organization's security team and the Coolify project maintainers for deployment-specific guidance. No exploit code or weaponization details are provided in this document. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-34049LOWCoolify MongoDB Backup Command Injection Vulnerability
- CVE-2026-34149LOWCoolify DatabaseBackupJob Command Injection Vulnerability
- CVE-2026-42201LOWCoolify Database Credential Command Injection Vulnerability
- CVE-2025-41265HIGHWaterfall WF-500 TX Host OS Command Injection (CVSS 7.2)
- CVE-2025-41266HIGHWaterfall WF-500 TX Host Command Injection Vulnerability Analysis
- CVE-2025-41267HIGHWaterfall WF-500 TX Host Command Injection Vulnerability
- CVE-2025-41279HIGHOS Command Injection in Waterfall WF-500 RX Host Administration WebUI
- CVE-2025-41281HIGHWaterfall WF-500 OS Command Injection