Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Coolify UI
-
DeliveryCreate PostgreSQL resource with traversal filename
-
ExploitWrite init script outside intended directory
-
ExecutionTrigger database initialization
-
ImpactExecute arbitrary commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Coolify account (PR:L) with the ability to create or configure a PostgreSQL database resource and control an initialization-script filename processed by generate_init_scripts() in StartPostgresql.php. Exploitation depends on triggering PostgreSQL database initialization so the planted file executes. Limiting factors: valid authentication is mandatory (no unauthenticated path), the attacker must reach the Coolify web UI over the network, and the target must run a version prior to 4.0.0-beta.474; no admin user interaction is required. |
| Impact | The CVSS 3.1 base score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H): network-reachable via the Coolify web UI, low attack complexity, and only low-privilege authentication (PR:L) required, with full confidentiality, integrity, and availability impact consistent with host-level code execution. No EPSS score, KEV listing, or SSVC decision data was provided, so real-world exploitation probability cannot be quantified from the input, and the vulnerability is not confirmed actively exploited. The key limiting factor is that exploitation is authenticated - an attacker needs a valid Coolify account able to create/configure a PostgreSQL resource. This is a genuine high priority for internet-exposed multi-tenant or team Coolify instances (where lower-privileged users exist); single-admin self-hosted instances behind authentication face lower practical risk. No conflicting signals were detected in the supplied data. |
| Exploit ScenarioDerived | A low-privileged but authenticated Coolify user creates a new PostgreSQL database and supplies an initialization script whose filename contains path-traversal sequences, causing Coolify to write attacker-controlled content outside the intended init directory. When the database container initializes, the planted script executes, giving the attacker command execution in the database/host context. No public proof-of-concept was provided, but the disclosed fix commit reveals the vulnerable path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 07, 2026
Path traversal leading to remote code execution in Coolify (self-hosted PaaS) before 4.0.0-beta.474 allows an authenticated user to abuse insufficient filename sanitization in the PostgreSQL initialization-script generator (generate_init_scripts() in app/Actions/Database/StartPostgresql.php) to write files outside the intended directory and execute commands during database init. Any user with sufficient privileges to provision a PostgreSQL resource can escalate to code execution on the Coolify host. No public exploit identified at time of analysis, though the fix commit and security advisory publicly disclose the vulnerable code path.
RemediationAI
Vendor-released patch: 4.0.0-beta.474 - upgrade Coolify to that version or later (https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474), which corrects the filename handling in generate_init_scripts(); this is the primary and recommended fix. If immediate upgrade is not possible, reduce exposure by restricting who can create or configure PostgreSQL database resources - limit accounts to trusted administrators and remove or downgrade low-privilege team members, since exploitation requires an authenticated account able to define init scripts (trade-off: reduces delegation in multi-user teams). Additionally, place the Coolify dashboard behind a VPN or IP allowlist to shrink the network attack surface (trade-off: complicates legitimate remote administration). Review advisory GHSA-mv4c-9x67-rrmv and fix commit 1cf6c7d before validating any custom mitigation.
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 is a PHP/Laravel-based open-source, self-hostable platform-as-a-service for deploying applications, databases, and servers via Docker on user-owned infrastructure (cpe:2.3:a:coollabsio:coolify). The flaw is a CWE-22 improper limitation of a pathname to a restricted directory ('path traversal'): when Coolify provisions a PostgreSQL database, generate_init_scripts() takes user-supplied initialization-script filenames and writes them without adequately restricting traversal sequences. Because PostgreSQL executes scripts placed in its docker-entrypoint-initdb.d directory at container startup, writing an attacker-controlled file to an unintended path converts a file-write primitive into command/script execution during database initialization.
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:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitable over the network via the web UI (AV:N/AC:L), requires a low-privilege authenticated account able to define init scripts (PR:L), and yields host code execution with full C/I/A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.474, PostgreSQL initialization script (generate_init_scripts() method in app/Actions/Database/StartPostgresql.php) filename handling did not sufficiently restrict paths, allowing an authenticated user to write files outside the intended directory and achieve command execution through database initialization. This issue is fixed in version 4.0.0-beta.474.
Executive ViewAI
Coolify self-hosted PaaS versions before 4.0.0-beta.474 contain a path traversal vulnerability enabling authorized database administrators to execute arbitrary code on the host system, creating an acute insider threat for organizations managing infrastructure through this platform. The vulnerability in the PostgreSQL initialization script generator allows complete privilege escalation from database access to full host control with no patch currently available. This represents a critical control gap for any organization dependent on Coolify for infrastructure automation.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict PostgreSQL database provisioning access to minimal set of essential personnel; disable Coolify database initialization script generation if operationally feasible; implement real-time audit logging and alerting for all database provisioning and host command execution; apply network segmentation to limit blast radius if host is compromised; require change control approval and multi-factor authentication for any database resource provisioning.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Related Vulnerabilities in Coolify Command Injection and CSRF Vulnerabilities
View all 5Cross-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-41979
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB