CVE-2026-34158 Details
Description
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.469, the executeInDocker() helper wraps user-controlled commands in single quotes without escaping embedded single quotes. Attackers who can edit application settings can inject a single quote into docker_compose_custom_build_command or docker_compose_custom_start_command to break out of the quoted context and execute arbitrary commands on the managed server host during deployments, escaping the intended Docker container confinement. This issue is fixed in version 4.0.0-beta.469.
A command injection vulnerability has been identified in Coolify versions prior to 4.0.0-beta.469. The issue arises in the 'executeInDocker()' helper, which wraps user-controlled commands in single quotes without properly escaping embedded single quotes. This flaw allows attackers with the ability to edit application settings to inject a single quote into 'docker_compose_custom_build_command' or 'docker_compose_custom_start_command'. By breaking out of the quoted context, they can execute arbitrary commands on the managed server host during deployments, bypassing Docker's intended container confinement. The vulnerability is exploited through the Coolify API or Livewire UI, with injected commands executed on the host outside of the Docker container.
Users are advised to update to Coolify version 4.0.0-beta.469 or later. Additionally, single quotes should be properly escaped in the 'executeInDocker()' helper to prevent injection. After applying this fix, remove any redundant escaping in the application deployment job to avoid double-escaping.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 7, 2026CISA-ADP
Assessed Jul 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/coollabsio/coolify/security/advisories/GHSA-j6j2-frv3-g6f7 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/coollabsio/coolify/security/advisories/GHSA-j6j2-frv3-g6f7 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Coolify | 4.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 7, 2026 | New CVE Received | [email protected] |
Volerion