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.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
References
github.com/...oolify/security/advisories/GHSA-mv4c-9x67-rrmv
github.com/...oolify/security/advisories/GHSA-mv4c-9x67-rrmv
github.com/coollabsio/coolify/pull/9681
github.com/...ommit/1cf6c7d0aef8e0edb800ae43f44ded102397cb13
github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474