# CVE-2026-42200: Coolify: PostgreSQL Init Script Path Traversal Leads to Arbitrary File Write and Root RCE

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-07T02:48:04.402Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- coollabsio coolify: < 4.0.0-beta.474

## References

- <https://github.com/coollabsio/coolify/security/advisories/GHSA-mv4c-9x67-rrmv> (exploit)
- <https://github.com/coollabsio/coolify/pull/9681>
- <https://github.com/coollabsio/coolify/commit/1cf6c7d0aef8e0edb800ae43f44ded102397cb13>
- <https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.474>

## Sources

- CVE List: [CVE-2026-42200](https://www.cve.org/CVERecord?id=CVE-2026-42200), CVE Terms of Use, modified 2026-07-07
- NVD: [CVE-2026-42200](https://nvd.nist.gov/vuln/detail/CVE-2026-42200), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-42200 · Whole record: https://cve.day/CVE-2026-42200.json · Rebuilt by cve.day 2026-11-25T22:59:27.280Z
