CVE-2026-34149: Coolify DatabaseBackupJob Command Injection Vulnerability
Coolify, an open-source self-hosted platform for managing servers and databases, contains a command injection vulnerability in its backup functionality. When authenticated users with database management permissions configure backup jobs, credentials and collection names they enter are inserted directly into shell commands without proper escaping. An attacker with those permissions could craft malicious input to execute arbitrary commands on the servers Coolify manages. This affects versions prior to 4.0.0-beta.471.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.3 LOW · CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
- 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, DatabaseBackupJob interpolates user-controlled database credentials and MongoDB collection exclusion names into backup shell commands without adequate escaping, allowing an authenticated user with database management permissions to execute commands on managed servers. This issue is fixed in version 4.0.0-beta.471.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-34149 is a command injection vulnerability in Coolify's DatabaseBackupJob component. The vulnerability stems from unsafe string interpolation of user-supplied database credentials and MongoDB collection exclusion parameters into shell command strings. Insufficient input sanitization and output escaping allow authenticated users holding database management roles to break out of the intended command context and inject arbitrary shell metacharacters and commands. The attack vector is network-based, requires high privilege (database admin role) and high complexity (crafting specific payloads), and results in limited confidentiality and integrity impact. The underlying weakness is classified as CWE-78 (OS Command Injection).
Business impact
The risk is constrained by the authentication and privilege requirements—an attacker must already have valid Coolify credentials and database management permissions. However, for organizations running Coolify in environments where database admins are less trusted or where credentials are shared broadly, this creates a lateral movement and privilege escalation risk. A malicious database admin could gain shell access to any server managed by that Coolify instance, potentially leading to data exfiltration, service disruption, or further network compromise. The low CVSS score reflects these mitigating factors, but organizations should evaluate their own access control posture and trust model.
Affected systems
Coolify versions prior to 4.0.0-beta.471 are affected. The vulnerability is present in the DatabaseBackupJob functionality, so it is only exploitable by users who can create or modify backup jobs. Self-hosted Coolify instances are the primary target. No vendor-managed SaaS instances of Coolify are known to be affected in the same way, as they would control access and updates centrally.
Exploitability
Exploitation requires valid Coolify authentication and database management permissions—a relatively high bar. The attacker must also understand shell command syntax and the specific backup job configuration interface well enough to inject payloads through credential or exclusion name fields. No public exploit code or proof-of-concept has been disclosed. The complexity of crafting a payload and the need for elevated privileges mean opportunistic attacks are unlikely, but targeted attacks by a disgruntled database administrator or an attacker who has compromised a privileged account are realistic.
Remediation
Update Coolify to version 4.0.0-beta.471 or later. The fix includes proper escaping of user-supplied input before interpolation into shell commands. Organizations unable to upgrade immediately should restrict database management permissions to trusted personnel only and monitor backup job configurations for suspicious credential or exclusion patterns.
Patch guidance
Verify your Coolify version by checking the application dashboard or release notes. If running a version prior to 4.0.0-beta.471, download and apply the latest stable or beta release from the official Coolify repository. Test the update in a staging environment first to confirm backup jobs continue to function correctly. Review any existing backup job configurations after patching to ensure they remain valid and functional.
Detection guidance
Monitor Coolify audit logs for database backup job creation or modification events, especially any that include unusual characters (backticks, dollar signs, pipes, semicolons) in credential fields or collection exclusion parameters. Check server access logs on managed systems for unexpected command execution or shell access initiated from Coolify processes during backup windows. If you suspect exploitation, review the shell command history on affected servers and inspect database backup logs for abnormal activity or failed backup attempts that may indicate tampering.
Why prioritize this
This vulnerability warrants prompt but not emergency attention. The CVSS score of 3.3 (Low) accurately reflects the dual requirement for authentication and elevated privileges. However, it should be prioritized above lower-severity issues because exploitation could grant shell access to critical infrastructure. Organizations with strict access controls and a small number of trusted database administrators may deprioritize this slightly; those with broader database admin roles or shared credentials should treat it as medium priority.
Risk score, explained
The CVSS 3.1 score of 3.3 reflects: Network attack vector (AV:N) — exploitable remotely; High attack complexity (AC:H) — requires crafted payloads and understanding of the interface; High privilege requirement (PR:H) — database management role required; No user interaction needed (UI:N); Unchanged scope (S:U); and Low impact to confidentiality and integrity (C:L, I:L) with no availability impact (A:N). The high privilege and complexity requirements suppress the score despite the serious nature of remote code execution.
Frequently asked questions
Can an attacker exploit this without authentication?
No. The vulnerability requires valid Coolify credentials and database management permissions. Public or anonymous access to Coolify would not allow exploitation.
Does this affect the commercial or SaaS versions of Coolify?
Coolify is open-source and self-hosted by design. There is no official commercial SaaS offering. If you are using a third-party managed Coolify service, contact your provider to confirm their patch status.
What should we do if we cannot patch immediately?
Restrict database management role assignment to your most trusted administrators, disable or remove unnecessary backup jobs, and monitor audit logs and server access logs closely. Plan a maintenance window to patch as soon as feasible.
How do I know if we have been exploited?
Look for unexpected shell commands executed by Coolify processes, unusual file modifications on managed servers, unexpected network connections, or backup jobs that failed or produced unexpected output. Enable detailed audit logging if available.
This analysis is provided for informational purposes and should not be considered legal, security, or investment advice. The information is based on available public source material as of the publication date. Organizations should verify vendor advisories and patch releases independently before deploying any updates. Security risk assessment is highly dependent on individual network architecture, access controls, and threat model; organizations should adjust prioritization accordingly. SEC.co makes no warranty regarding the completeness or accuracy of this information. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-34049LOWCoolify MongoDB Backup Command Injection Vulnerability
- CVE-2026-42148LOWCoolify Command Injection in Development Helper Image Build
- CVE-2026-42201LOWCoolify Database Credential Command Injection Vulnerability
- 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