CVE-2025-66213 Coolify Vulnerable to Authenticated Remote Code Execution via Command Injection in File Storage Directory Mount Path

Critical 9.4 Published Updated

Authenticated attackers can execute arbitrary root commands on managed servers via unsanitized input in Coolify's file storage configuration.

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-2025-66213?

CVE-2025-66213 is a critical command injection vulnerability in coollabsio coolify, published on 23 Dec 2025. 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 version 4.0.0-beta.451, an authenticated command injection vulnerability in the File Storage Directory Mount Path functionality allows users with application/service management permissions to execute arbitrary commands as root on managed servers. The file_storage_directory_source parameter is passed directly to shell commands without proper sanitization, enabling full remote code execution on the host system. Version 4.0.0-beta.451 fixes the issue.

Weakness: CWE-78

Which versions are affected by CVE-2025-66213?

It affects 1 product.

Products include Coollabs Coolify.

How do I fix CVE-2025-66213?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-66213 being exploited?

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

Sources

Also known as GHSA-cj2c-9jx8-j427.

Is CVE-2025-66213 in your software?

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

Check your SBOMs for free