CVE-2026-34057: Coolify Database Import Command Injection Vulnerability
Coolify, a self-hosted application deployment and infrastructure management platform, contains a command injection vulnerability in its database import feature. An authenticated user can inject arbitrary shell commands by manipulating the container name during database import operations, potentially gaining full control over the underlying system. The vulnerability exists because user-supplied input is passed directly to shell commands without sanitization or validation. This has been fixed in version 4.0.0-beta.471.
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.471, the database import Livewire component (app/Livewire/Project/Database/Import.php) allows client-controlled container and server properties to reach shell commands without locking or validation, allowing an authenticated user to inject commands through a database import container name. This issue is fixed in version 4.0.0-beta.471.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-34057 is a command injection vulnerability in the Livewire-based database import component (app/Livewire/Project/Database/Import.php) of Coolify versions prior to 4.0.0-beta.471. The vulnerability stems from insufficient input validation on container and server properties that are subsequently used in shell command construction. An authenticated attacker can inject shell metacharacters and commands through the database import container name field, which are then executed with the privileges of the Coolify application process. The lack of parameterization or escaping of these user-controlled values creates a direct path from HTTP request input to system command execution.
Business impact
Organizations running vulnerable Coolify instances face significant operational and security risk. An authenticated user—whether a legitimate administrator, compromised account, or insider—can achieve arbitrary command execution on the host system. This enables complete system compromise, including data exfiltration, malware deployment, lateral movement to connected infrastructure, and denial of service. For organizations using Coolify to manage production databases and applications, this vulnerability could lead to unauthorized access to sensitive data, application downtime, and breach of downstream systems managed through the compromised Coolify instance.
Affected systems
Coolify versions prior to 4.0.0-beta.471 are affected. The vulnerability is present in the open-source version and any self-hosted deployments running unpatched builds. The database import feature is a core component, so any Coolify instance with database management capabilities is potentially vulnerable if accessed by an authenticated user.
Exploitability
Exploitation requires valid authentication credentials to access the Coolify interface. No network-layer authentication bypass is needed—the attacker must already have a user account. Once authenticated, the attack is trivial to execute: an attacker simply modifies the container name field during a database import operation to include shell metacharacters (such as semicolons, pipes, or command substitution syntax). The CVSS vector reflects this: while access requires prior authentication (PR:L), the attack complexity is low (AC:L), requires no user interaction (UI:N), and delivers high impact across confidentiality, integrity, and availability (C:H/I:H/A:H). In practice, this means any authenticated user—even one with minimal intended privileges—can escalate to system-level access.
Remediation
Upgrade Coolify to version 4.0.0-beta.471 or later immediately. This version contains input validation and sanitization fixes for the database import component. Before upgrading, review access controls to limit who can reach the database import feature; restrict Coolify user accounts to only those who require database management. For environments where upgrading is blocked by other constraints, disable or restrict access to the database import functionality at the network or application level.
Patch guidance
Apply the update to Coolify 4.0.0-beta.471 as soon as your deployment schedule permits. This is a security patch addressing a HIGH-severity vulnerability in an authenticated context, not a routine update. Test the patch in a staging environment first if feasible, but prioritize deployment over extended testing windows. The fix involves proper input validation in the Import.php Livewire component; verify that the patched version includes sanitization of container and server properties before shell execution. If you maintain a fork or custom build of Coolify, backport the validation changes to your version. Document the patch application in your change log for compliance and incident response purposes.
Detection guidance
Monitor Coolify application logs for unusual activity in the database import feature. Look for failed import attempts with suspicious container names containing shell metacharacters (;, |, $(), `, &, etc.). Check system process logs (auditd on Linux, Process Monitor on Windows) for unexpected child processes spawned by the Coolify application process during or after database import operations. Network-level monitoring should detect outbound connections initiated by the Coolify process that deviate from expected database operations. If you have access to Coolify's database or logs, query for import requests with container names containing special characters or command-like syntax. Correlate these findings with timestamps of suspicious system activity on the host.
Why prioritize this
This vulnerability merits immediate attention due to the combination of direct command injection capability, high severity rating (8.8/HIGH), and minimal attack complexity. Although authentication is required, this is a minor barrier in self-hosted environments where legitimate users may be trusted but then compromised, or where account provisioning is loose. The impact—arbitrary code execution with application-level privileges—is catastrophic for infrastructure management tools like Coolify, which typically have broad network access and administrative capabilities. Delay increases the window for exploitation by insiders, compromised accounts, or coordinated attacks.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects high impact across confidentiality, integrity, and availability (C:H/I:H/A:H) combined with low attack complexity (AC:L) and no user interaction required (UI:N). The requirement for prior authentication (PR:L) prevents a maximum score of 9.8, but does not materially reduce the severity for self-hosted Coolify deployments where authentication may be weak or insider risk is present. The attack vector is network-based (AV:N), allowing exploitation from anywhere with network access to the Coolify interface. The score accurately captures the ease of exploitation and magnitude of potential harm.
Frequently asked questions
Do I need a Coolify account to exploit this vulnerability?
Yes. An attacker must possess valid authentication credentials—a username and password or API token—to access the database import feature. This does not require administrative privileges, only any authenticated user account. In environments with centralized authentication or federated identity, compromise of any such account opens the door to exploitation.
What happens if I upgrade Coolify after this vulnerability has been exploited?
Upgrading will patch the injection vector and prevent future exploitation through this specific flaw. However, upgrading alone does not reverse any damage done by prior exploitation. If an attacker already gained command execution, they may have installed persistence mechanisms, malware, or created unauthorized accounts. Upgrade as the first step, then conduct forensic investigation and system hardening to detect and remove any artifacts of compromise.
Can I work around this vulnerability without upgrading immediately?
Partial mitigation is possible by restricting network or administrative access to the Coolify database import feature to only trusted administrators, using firewall rules or reverse proxy controls. However, this does not eliminate the vulnerability for authorized users. The only reliable remediation is to upgrade to version 4.0.0-beta.471 or later. Disabling the database import feature entirely is an option if your deployment does not require it.
Is this vulnerability being actively exploited in the wild?
As of the published date (July 7, 2026), this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating no widespread, coordinated exploitation has been reported. However, the ease of exploitation and the direct impact make it an attractive target for attackers who gain authenticated access. Assume exploitation is possible and patch accordingly rather than waiting for proof of active campaigns.
This analysis is provided for informational and educational purposes to assist security professionals in vulnerability assessment and remediation planning. The information is based on the published CVE record and vendor advisory. Readers should verify all patch versions, affected products, and remediation steps against official vendor documentation and their own environment before taking action. SEC.co does not provide legal advice, and organizations should consult their own security policies, legal teams, and incident response procedures when responding to vulnerabilities. Test all patches in non-production environments before deployment. Exploitation of this or any vulnerability for unauthorized access or damage is illegal. 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