The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-59157

CVE-2025-59157: Coolify Command Injection RCE Vulnerability

CVE-2025-59157 is a command injection vulnerability in Coolify that enables remote code execution through unsanitized Git Repository input. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-59157 Overview

CVE-2025-59157 is a critical command injection vulnerability affecting Coolify, an open-source and self-hostable tool for managing servers, applications, and databases. The vulnerability exists in the Git Repository field during project creation, where user input is not properly sanitized. This allows attackers to inject arbitrary shell commands that execute on the underlying server during the deployment workflow. The vulnerability is particularly concerning because even regular member users with limited privileges can exploit it to achieve full server compromise.

Critical Impact

Authenticated users with minimal privileges can execute arbitrary commands on the underlying server, potentially leading to complete system compromise, data theft, and lateral movement within the infrastructure.

Affected Products

  • Coolify versions prior to 4.0.0-beta.420.7

Discovery Timeline

  • January 5, 2026 - CVE-2025-59157 published to NVD
  • January 8, 2026 - Last updated in NVD database

Technical Details for CVE-2025-59157

Vulnerability Analysis

This command injection vulnerability (CWE-78) allows authenticated attackers to inject malicious shell commands through the Git Repository field when creating new projects in Coolify. The application fails to properly validate and sanitize user-supplied input before incorporating it into shell commands executed during the deployment workflow. Since the injected commands run with the privileges of the Coolify service, successful exploitation can result in complete server takeover, unauthorized access to sensitive data, modification of deployed applications, and potential pivot points for attacking other systems in the network.

Root Cause

The root cause of this vulnerability is improper input validation in the Git Repository field handling logic. When users create projects and specify a Git repository URL, the application passes this input directly to shell commands without adequate sanitization or escaping. This allows special shell characters and command separators to be interpreted by the underlying shell, enabling command injection attacks. The vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command).

Attack Vector

The attack is network-accessible and requires only low-privilege authentication (a regular member account). An attacker can craft a malicious Git repository URL containing shell metacharacters such as semicolons (;), backticks, or command substitution syntax ($(command)). When the deployment workflow processes this malicious input, the injected commands are executed on the server with the same privileges as the Coolify application. This allows attackers to read sensitive files, establish reverse shells, install backdoors, or pivot to other systems on the network.

The vulnerability can be exploited by crafting a specially formatted Git repository URL that includes shell command injection payloads. When a user with member privileges creates a project using this malicious repository URL, the Coolify deployment process executes the injected commands on the underlying server. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2025-59157

Indicators of Compromise

  • Unusual shell commands or processes spawned by the Coolify application service
  • Unexpected network connections originating from the Coolify server
  • Modified or newly created files in system directories outside of normal Coolify operations
  • Suspicious entries in Coolify deployment logs containing shell metacharacters or command sequences

Detection Strategies

  • Monitor Coolify application logs for Git repository URLs containing shell metacharacters such as ;, |, &&, backticks, or $() patterns
  • Implement process monitoring to detect unexpected child processes spawned by the Coolify service
  • Deploy network monitoring to identify anomalous outbound connections from the Coolify server
  • Review audit logs for project creation activities with unusual repository URL patterns

Monitoring Recommendations

  • Enable comprehensive logging for all project creation and deployment activities in Coolify
  • Configure SIEM rules to alert on suspicious command patterns in application logs
  • Implement file integrity monitoring on critical system files and Coolify installation directories
  • Monitor for privilege escalation attempts or unusual user activity following project creation events

How to Mitigate CVE-2025-59157

Immediate Actions Required

  • Upgrade Coolify to version 4.0.0-beta.420.7 or later immediately
  • Audit existing projects for any suspicious Git repository URLs that may contain malicious payloads
  • Review server logs and process history for signs of exploitation
  • Restrict network access to the Coolify management interface to trusted networks only

Patch Information

The vulnerability has been addressed in Coolify version 4.0.0-beta.420.7. Organizations should upgrade to this version or later as soon as possible. The patch implements proper input sanitization for the Git Repository field, preventing shell metacharacters from being interpreted as commands. For more details, refer to the GitHub Security Advisory.

Workarounds

  • Restrict project creation privileges to only highly trusted administrators until the patch can be applied
  • Implement network segmentation to limit the potential impact of server compromise
  • Deploy web application firewall (WAF) rules to filter requests containing shell metacharacters in the Git repository field
  • Monitor and audit all project creation activities for suspicious patterns
bash
# Verify Coolify version after upgrade
coolify version
# Expected output should show 4.0.0-beta.420.7 or higher

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCoolify

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-59156: Coolify RCE Vulnerability

  • CVE-2025-64419: Coolify RCE Vulnerability

  • CVE-2025-64424: Coolify Command Injection RCE Vulnerability

  • CVE-2025-59955: Coolify Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English