CVE-2026-42148: Coolify: Command Injection via Unescaped Version String in Docker Build
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 devhelperversion 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Coolifyto a version that resolves this vulnerability.Fixed in 4.0.0-beta.474
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42148?
The severity of CVE-2026-42148 is rated as low with a score of 3.8.
How do I fix CVE-2026-42148?
To fix CVE-2026-42148, update Coolify to version 4.0.0-beta.474 or later where the vulnerability has been addressed.
What type of vulnerability is CVE-2026-42148?
CVE-2026-42148 is classified as an OS Command Injection vulnerability.
What version of Coolify is affected by CVE-2026-42148?
CVE-2026-42148 affects versions of Coolify prior to 4.0.0-beta.474.
What component of Coolify is involved in CVE-2026-42148?
The buildHelperImage method in app/Livewire/Settings/Index.php is involved in CVE-2026-42148.