CVE-2026-34597: Coolify Authenticated RCE via Nixpacks Build Parameter Injection
Coolify, a self-hosted platform for managing servers, applications, and databases, contains a critical flaw in how it processes build configuration parameters. When users specify custom installation commands for Nixpacks builds, Coolify fails to safely isolate these inputs before executing them on the deployment host. An authenticated attacker can craft a malicious install_command that breaks out of the intended build sandbox and runs arbitrary commands with the full privileges of the host system. This is a post-authentication vulnerability—the attacker must have valid Coolify credentials—but once authenticated, the risk is severe because successful exploitation grants complete host compromise during the deployment phase.
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-06-29 / 2026-06-30
NVD description (verbatim)
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.470, a critical Authenticated Host Remote Code Execution (RCE) vulnerability was discovered in Coolify. The flaw resides in the handling of user-defined build parameters for the Nixpacks build pack. Specifically, the install_command provided by a user is directly concatenated into a shell command string that is executed on the deployment host during the building phase. An attacker can leverage this to escape the intended build context and execute arbitrary commands with host-level privileges. This vulnerability is fixed in 4.0.0-beta.470.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in Coolify's Nixpacks build pack handler prior to version 4.0.0-beta.470. The root cause is unsafe string concatenation: the install_command parameter supplied by an authenticated user is directly embedded into a shell command without sanitization or proper argument quoting. During the build process, this concatenated string is executed via shell on the deployment host, allowing standard shell metacharacters (pipes, semicolons, command substitution, etc.) to be interpreted as command separators rather than literal arguments. The flaw maps to CWE-78 (Improper Neutralization of Special Elements used in an OS Command, 'OS Command Injection'). The CVSS 3.1 score of 8.8 reflects high confidentiality, integrity, and availability impact with low attack complexity and network-based attack vector, constrained only by the requirement for prior authentication.
Business impact
Exploitation enables lateral movement and data exfiltration within infrastructure managed by Coolify. An attacker with credentials can pivot from the Coolify control plane to underlying hosts, compromise containerized applications, and access connected databases or secrets. For organizations using Coolify in production, this creates supply-chain risk: malicious build commands could be injected during CI/CD pipelines, poisoning container images before deployment. The authentication requirement limits blast radius compared to unauthenticated RCE, but credential compromise—whether through phishing, insider threat, or credential stuffing—significantly lowers the bar to exploitation. Business continuity is at risk if deployments are weaponized to install backdoors or sabotage services.
Affected systems
Coolify versions prior to 4.0.0-beta.470 are vulnerable. The Nixpacks build pack integration is the attack surface. Any authenticated user with permission to define or modify build parameters for Nixpacks-based deployments can trigger the vulnerability. Self-hosted Coolify instances are at direct risk; cloud-managed Coolify offerings depend on their deployment model and version status. Organizations should verify their Coolify version and check access controls around build configuration privileges.
Exploitability
Exploitability is moderate to high within the authentication boundary. The attack requires valid Coolify credentials and access to create or modify a deployment with Nixpacks configuration. No complex gadget chains or race conditions are needed—simple shell injection payloads (e.g., `; malicious_command #`) embedded in the install_command field will execute. Once authenticated, the attack surface is readily accessible via the Coolify UI or API. The vulnerability is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog, suggesting limited public weaponization as of the publication date, though this should not be taken as a guarantee of safety. Proof-of-concept exploits will likely emerge post-disclosure.
Remediation
Immediate action: upgrade Coolify to version 4.0.0-beta.470 or later. This patch introduces proper input validation and shell escaping for the install_command parameter. Interim mitigations for users unable to patch immediately include: (1) restrict Coolify user permissions to the minimum necessary for legitimate deployments; (2) disable or remove Nixpacks build pack integration if not actively used; (3) implement network segmentation so Coolify hosts cannot reach sensitive internal systems or data stores; (4) audit all existing deployments and build configurations for suspicious commands; (5) enforce multi-factor authentication on Coolify accounts to reduce credential compromise risk. These measures reduce but do not eliminate risk.
Patch guidance
Upgrade to Coolify 4.0.0-beta.470 or any subsequent stable release. Review the official Coolify release notes and deployment documentation to ensure compatibility with your environment before upgrading. Test the patch in a non-production environment first, particularly if you have custom build scripts or integrations. After patching, re-validate existing deployments to confirm they still function correctly with the improved input handling. If you are a managed Coolify customer, confirm with your provider that they have applied or plan to apply this patch.
Detection guidance
Monitor Coolify build logs and deployment execution logs for unusual shell commands or special characters in install_command parameters (semicolons, backticks, pipes, $() syntax). Look for failed build executions preceded by commands unrelated to the declared build process. If Coolify logs are forwarded to a SIEM, create rules to flag install_command values containing shell metacharacters. Inspect the Coolify deployment configuration files (if accessible) for anomalous commands. Review authentication logs for unauthorized or suspicious user accounts accessing build configuration APIs. Network-level detection is harder without host-based monitoring, but exfiltration or lateral movement attempts from Coolify hosts to sensitive resources should trigger incident response.
Why prioritize this
This is a high-priority patch despite requiring authentication. Coolify is often deployed in CI/CD contexts with broad access to infrastructure and secrets. Compromised credentials are common in breach scenarios, and the RCE impact is severe—host-level code execution during builds can contaminate images, leak environment variables, or install persistent backdoors. The fix is available and straightforward to apply. Organizations running production Coolify should prioritize this update within 1–2 weeks; those using Coolify in high-privilege environments (e.g., production deployments, secrets management) should treat it as critical and patch within days.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects the combination of network accessibility (AV:N), low attack complexity (AC:L), high impact on confidentiality, integrity, and availability (C:H/I:H/A:H), and an unsandboxed security context (S:U). The only limiting factor is the requirement for prior authentication (PR:L). Given that build parameters are often under user control and credentials may be shared, delegated, or compromised, the practical exploitability is closer to HIGH than MEDIUM. The score appropriately prioritizes this above many other authenticated vulnerabilities and below only the most critical unauthenticated RCEs.
Frequently asked questions
Do I need Coolify credentials to exploit this?
Yes. The vulnerability requires an authenticated Coolify user who has permissions to define or modify build parameters for a Nixpacks deployment. However, compromised or delegated credentials are common, and if your Coolify instance is exposed to a trusted but untrusted network, the credential barrier is not a strong defense.
Does this affect all Coolify build packs or only Nixpacks?
Only Nixpacks is mentioned in the advisory. Other build pack handlers (e.g., Dockerfile, Heroku Buildpacks) may or may not have similar issues. You should review the patch notes to confirm scope and test any other build pack integrations in your environment.
What if I have not yet upgraded to 4.0.0-beta.470?
Immediately plan an upgrade. If you cannot upgrade within days, reduce attack surface by disabling Nixpacks builds, restricting user permissions to trusted administrators only, and enforcing multi-factor authentication. Monitor build logs closely for anomalies.
How can I detect if this has been exploited in my environment?
Review Coolify build logs for the past 30–90 days, looking for install_command parameters containing shell metacharacters (semicolons, pipes, backticks, $()) or commands unrelated to legitimate builds. Check host-level audit logs or command history on deployment machines for unexpected processes spawned during builds. If you have access to stored deployment configurations, audit them for suspicious entries.
This analysis is based on publicly available vulnerability information as of the publication date and is provided for informational and defensive purposes only. It does not constitute legal or professional security advice. Organizations should conduct their own risk assessment, verify patch availability and compatibility with their specific Coolify deployment, and test updates in non-production environments before production rollout. SEC.co makes no warranty regarding the accuracy or completeness of this analysis. Always consult the official Coolify project documentation and security advisories for authoritative guidance. Source: NVD (public-domain), retrieved 2026-08-08. 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