{"id":"CVE-2026-42200","aliases":["CVE-2026-42200"],"related":[],"kind":"vulnerability","state":"published","title":"Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Coolify es una herramienta de código abierto y autoalojable para gestionar servidores, aplicaciones y bases de datos. Antes de la versión 4.0.0-beta.474, el manejo del nombre de archivo del script de inicialización de PostgreSQL (método generate_init_scripts() en app/Actions/Database/StartPostgresql.php) no restringía suficientemente las rutas, permitiendo a un usuario autenticado escribir archivos fuera del directorio previsto y lograr la ejecución de comandos a través de la inicialización de la base de datos. Este problema está solucionado en la versión 4.0.0-beta.474.","source":"nvd"}],"published":"2026-07-07T02:48:04.402Z","modified":"2026-10-25T20:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 4.0.0-beta.474","status":"affected"}],"vendor":"coollabsio","product":"coolify","source":"cvelist"}],"references":[{"url":"https://github.com/coollabsio/coolify/security/advisories/GHSA-mv4c-9x67-rrmv","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/coollabsio/coolify/pull/9681","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/coollabsio/coolify/commit/1cf6c7d0aef8e0edb800ae43f44ded102397cb13","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-07T12:48:01.024Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42200","url":"https://www.cve.org/CVERecord?id=CVE-2026-42200","licence":"CVE Terms of Use","modified":"2026-07-07T12:49:05.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42200","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42200","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.280Z","epss":{"score":0.00661,"percentile":0.52895,"date":"2026-12-01T12:00:22.000Z"}}