CVE-2026-42200: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in coollabsio coolify
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.
AI Analysis
Technical Summary
CVE-2026-42200 is a path traversal vulnerability (CWE-22) in coollabsio's Coolify product affecting versions before 4.0.0-beta.474. The vulnerability exists in the generate_init_scripts() method of app/Actions/Database/StartPostgresql.php, where filename handling does not sufficiently restrict paths. This allows an authenticated user to write files outside the intended directory, enabling command execution through database initialization. The vulnerability is resolved in version 4.0.0-beta.474.
Potential Impact
An authenticated user can exploit this vulnerability to write arbitrary files outside the intended directory, which can lead to command execution during PostgreSQL database initialization. This can compromise confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade to version 4.0.0-beta.474 or later, where this vulnerability is fixed. Patch status is confirmed by the version information indicating the fix in 4.0.0-beta.474. No additional vendor advisory is provided, so check the vendor's official channels for further updates.
CVE-2026-42200: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in coollabsio coolify
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.
CVSS v3.1
Score 8.8high
Affected software
pkg:github/coollabsio/coolifyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42200 is a path traversal vulnerability (CWE-22) in coollabsio's Coolify product affecting versions before 4.0.0-beta.474. The vulnerability exists in the generate_init_scripts() method of app/Actions/Database/StartPostgresql.php, where filename handling does not sufficiently restrict paths. This allows an authenticated user to write files outside the intended directory, enabling command execution through database initialization. The vulnerability is resolved in version 4.0.0-beta.474.
Potential Impact
An authenticated user can exploit this vulnerability to write arbitrary files outside the intended directory, which can lead to command execution during PostgreSQL database initialization. This can compromise confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade to version 4.0.0-beta.474 or later, where this vulnerability is fixed. Patch status is confirmed by the version information indicating the fix in 4.0.0-beta.474. No additional vendor advisory is provided, so check the vendor's official channels for further updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-25T05:04:37.027Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4c745c27e9c79719d47777
Added to database: 07/07/2026, 03:37:00 UTC
Last enriched: 07/14/2026, 09:08:28 UTC
Last updated: 08/19/2026, 08:14:48 UTC
Views: 106
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.