Coolify
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 (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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
coollabsio coolify
- < 4.0.0-beta.474
Fixed in 4.0.0-beta.474
Mitigation
Upgrade coolify to 4.0.0-beta.474 or later.
References
- Vendor advisory github.com/coollabsio/coolify/security/advisor…
- Patch github.com/coollabsio/coolify/pull/9681
- Patch github.com/coollabsio/coolify/commit/1cf6c7d0a…
1 more
- Release notes github.com/coollabsio/coolify/releases/tag/v4.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.