CVE-2026-42200CWE-22

Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE

High · published July 7, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
59.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00891 · 59.0th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-07-07T02:48Z
EPSS history
Timeline
  • 07 JUL 02:48Z
    Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE
    cvelistv5