CVE-2025-59157 Coolify has Git Repository RCE
Attackers can inject shell commands via the Git Repository field to execute arbitrary code on the server.
- 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-59157?
CVE-2025-59157 is a critical command injection vulnerability in coollabsio coolify, published on 5 Jan 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 version 4.0.0-beta.420.7, the Git Repository field during project creation is vulnerable to command injection. User input is not properly sanitized, allowing attackers to inject arbitrary shell commands that execute on the underlying server during the deployment workflow. A regular member user can exploit this vulnerability. Version 4.0.0-beta.420.7 contains a patch for the issue.
Weakness: CWE-78
Which versions are affected by CVE-2025-59157?
It affects 1 product.
Products include Coollabs Coolify.
How do I fix CVE-2025-59157?
No fix has been published for CVE-2025-59157 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-59157 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59157 exists.
Other vulnerabilities in coollabsio coolify
- CVE-2025-64420 Coolify members can see private key of root user
- CVE-2025-66209 Coolify Vulnerable to Authenticated Remote Code Execution via Command Injection in Database Backup
- CVE-2025-22609 Coolify Vulnerable to Private Key Hijacking / Remote Command Execution (RCE)
- CVE-2025-22611 Coolify vulnerable to Privilege Escalation resulting in Remote Command Execution (RCE)
- CVE-2025-22612 Coolify Vulnerable to Private Key Enumeration on Onboarding resulting in Remote Command Execution (RCE)
Sources
Also known as GHSA-5cg9-38qj-8mc3.