CVE-2026-42200 Details
Description
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.
A path traversal vulnerability has been identified in Coolify versions prior to 4.0.0-beta.474. The issue arises in the PostgreSQL initialization script handling, where user-controlled filenames are not properly validated, allowing authenticated users to write files outside the intended directory. This vulnerability can be exploited to inject a malicious cron job that executes commands with root privileges, leading to remote code execution on the server.
Users are advised to update to Coolify version 4.0.0-beta.474 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 7, 2026CISA-ADP
Assessed Jul 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/coollabsio/coolify/security/advisories/GHSA-mv4c-9x67-rrmv | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/coollabsio/coolify/commit/1cf6c7d0aef8e0edb800ae43f44ded102397cb13 | [email protected] | Source CodeVendor |
| https://github.com/coollabsio/coolify/pull/9681 | [email protected] | Issue TrackingVendor |
| https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474 | [email protected] | Release NotesVendor |
| https://github.com/coollabsio/coolify/security/advisories/GHSA-mv4c-9x67-rrmv | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Coolify | <= 4.0.0-beta.473 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 7, 2026 | New CVE Received | [email protected] |
Volerion