CVE-2026-34158: Coolify Command Injection via Docker Settings - Patch Now
Coolify, a popular self-hosted deployment and infrastructure management tool, contains a command injection vulnerability in how it processes custom Docker build and startup commands. An authenticated attacker with settings-modification permissions can inject shell metacharacters into deployment configuration fields, causing arbitrary code to execute directly on the host system—bypassing the Docker container sandbox intended to isolate workloads. This is a post-authentication attack requiring existing application access, but the impact is severe: full system compromise during deployments.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-78
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-07 / 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.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.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in the executeInDocker() helper function, which constructs shell commands by wrapping user-controlled inputs in single quotes without sanitizing embedded quotes. When a user with settings edit capability provides a single quote in docker_compose_custom_build_command or docker_compose_custom_start_command fields, the quote terminates the intended quoted string, allowing subsequent shell syntax to execute in the host context rather than within the isolated container. This breaks the security boundary that Docker containerization is meant to enforce. The flaw affects all Coolify versions prior to 4.0.0-beta.469.
Business impact
Organizations self-hosting Coolify to manage their infrastructure face direct host compromise during application deployments—the most critical workflow in the tool. An insider, compromised privileged account, or lateral movement actor with settings access could execute arbitrary code with the privileges of the Coolify daemon process, potentially capturing credentials, exfiltrating data, pivoting to other systems, or establishing persistence. For teams using Coolify to manage production databases and applications, this effectively grants an authenticated attacker control over managed infrastructure and data.
Affected systems
Coolify versions prior to 4.0.0-beta.469 are vulnerable. The tool is self-hosted, so affected organizations are those running Coolify on-premises or in private cloud environments. The vulnerability requires an authenticated user with permissions to edit application settings—typically administrators or privileged deployment operators. The actual blast radius depends on how the hosting organization restricts settings access and whether Coolify itself runs with elevated privileges on the host.
Exploitability
Exploitation requires valid Coolify credentials and settings-edit permissions, placing this in the 'authenticated' attacker category. However, once access is obtained—through phishing, credential stuffing, insider threat, or account compromise—the attack is trivial: inject a single quote into a docker command field and the payload executes during the next deployment. No user interaction is required beyond the attacker modifying settings. The low attack complexity and direct code execution path make this highly exploitable within the scope of authenticated threats.
Remediation
Upgrade Coolify to version 4.0.0-beta.469 or later immediately. This version patches the executeInDocker() function to properly escape or parameterize command construction, preventing quote injection. Organizations unable to upgrade immediately should restrict settings-edit permissions to a minimal set of highly trusted administrators and monitor deployment logs for suspicious docker command modifications or unexpected host process execution during deployments.
Patch guidance
Apply Coolify version 4.0.0-beta.469 or any subsequent stable release. Verify the patch by reviewing the release notes or changelog for confirmation that the executeInDocker() command injection fix is included. Test the upgrade in a non-production environment first to ensure custom Docker build and start commands still function as intended post-patch. After patching, audit recent deployment logs and settings changes to detect any prior exploitation attempts.
Detection guidance
Monitor Coolify deployment logs and audit trails for anomalous modifications to docker_compose_custom_build_command or docker_compose_custom_start_command fields, particularly additions of special characters or shell metacharacters (quotes, semicolons, pipes, backticks). Track which users modify these settings and when. On the host system running Coolify, correlate deployment activity with unexpected process execution outside the container sandbox—examine host process logs and syscall traces for commands spawned by the Coolify daemon during deployments. Look for shell invocations, credential access, or network connections that do not match legitimate application behavior.
Why prioritize this
This vulnerability merits immediate attention despite the authenticated prerequisite. The impact is severe—arbitrary code execution on managed infrastructure—and the attack is trivial to execute once credentials are obtained. Organizations running Coolify in production are managing critical infrastructure; compromise here cascades to dependent applications and databases. The fix is a version upgrade away, making delay unjustifiable. Prioritize this above lower-impact vulnerabilities, especially if Coolify administrators have broad privileges or if settings edit permissions are granted to many users.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects the confluence of high confidentiality, integrity, and availability impact (C:H/I:H/A:H) against the host system, combined with network accessibility and low attack complexity (AV:N/AC:L). The score appropriately assumes the attacker is authenticated (PR:L), which accurately models the threat surface: anyone with legitimate but compromised Coolify credentials can trigger catastrophic host compromise. The unchanged scope (S:U) correctly notes that the impact is confined to the host running Coolify—not a wider network—but that is still critical given Coolify's role managing production infrastructure.
Frequently asked questions
Does this vulnerability require internet access to Coolify?
No, the vulnerability requires only network access to the Coolify web interface (typically on a private network) or local access. An attacker must authenticate and modify settings, which could occur remotely if Coolify is exposed to a network the attacker can reach. Most self-hosted deployments restrict Coolify to internal networks or VPNs, but exposure can vary.
Are there workarounds if we cannot upgrade immediately?
Temporarily disable or restrict access to Coolify's settings panel to only the most trusted administrators. Remove settings-edit permissions from regular deployment operators. Monitor deployment logs closely. However, these are mitigations, not fixes—upgrading is the only reliable remediation.
How can we tell if we were exploited before patching?
Review your Coolify audit logs and deployment history for the past several months. Look for suspicious modifications to docker_compose_custom_build_command or docker_compose_custom_start_command fields—especially additions of quotes, semicolons, backticks, or command separators. Cross-reference timing with unexpected processes or connections on your host system during deployments. If you find evidence, treat it as a security incident and investigate for lateral movement or data exfiltration.
Does this affect only Coolify or other Docker management tools as well?
The vulnerability is specific to Coolify's executeInDocker() implementation. Other Docker management tools may have similar command-injection risks if they also wrap user input in quotes without escaping, but you must evaluate each tool independently. This is a reminder to audit how any tool constructs shell commands from user-controlled input.
This analysis is based on the CVE description and CVSS vector provided and is accurate as of the publication date. Security landscapes evolve; verify all patch versions and compatibility against official Coolify advisories and release notes before deployment. No exploit code or weaponized proof-of-concept details are included. This document is for informational purposes and does not constitute legal or professional security advice specific to your organization. Consult your security team and vendor documentation for remediation decisions. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- 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
- CVE-2025-66273HIGHQNAP Command Injection in QTS and QuTS hero
- CVE-2025-66279HIGHQNAP NAS Command Injection – Admin Authentication Required, HIGH Severity
- CVE-2025-69755HIGHNeterbit NW-431F Router RCE and Data Exposure Vulnerability