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

High 8.8 Published Updated

An authenticated user can exploit path traversal in PostgreSQL init scripts to write arbitrary files and execute commands as root.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-42200?

CVE-2026-42200 is a high-severity path traversal vulnerability in coollabsio coolify, published on 7 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-42200?

How do I fix CVE-2026-42200?

No fix has been published for CVE-2026-42200 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-42200 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42200 exists.

Sources

Also known as GHSA-mv4c-9x67-rrmv.

Is CVE-2026-42200 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free