CVE-2026-42200: Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE
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 (generateinitscripts() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Coolifyto a version that resolves this vulnerability.Fixed in 4.0.0-beta.474
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42200?
The severity of CVE-2026-42200 is rated high with a score of 8.8.
What does CVE-2026-42200 affect?
CVE-2026-42200 affects the Coolify software, specifically prior to version 4.0.0-beta.474.
How do I mitigate CVE-2026-42200?
Mitigation for CVE-2026-42200 involves upgrading Coolify to version 4.0.0-beta.474 or later.
What type of vulnerability is CVE-2026-42200?
CVE-2026-42200 is classified as a Path Traversal vulnerability.
What is the impact of CVE-2026-42200?
The impact of CVE-2026-42200 includes arbitrary file write and potential root Remote Code Execution (RCE).