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-64419

CVE-2025-64419: Coolify RCE Vulnerability

CVE-2025-64419 is a remote code execution flaw in Coolify that allows attackers to execute commands as root through unsanitized docker-compose.yaml parameters. This post covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-64419 Overview

CVE-2025-64419 is a critical command injection vulnerability discovered in Coolify, an open-source and self-hostable tool for managing servers, applications, and databases. The vulnerability exists in versions prior to 4.0.0-beta.445 where parameters sourced from docker-compose.yaml files are not properly sanitized when used in shell commands. This allows an attacker to execute arbitrary commands on the Coolify instance with root privileges if a victim user creates an application from an attacker-controlled repository using the "docker compose" build pack.

Critical Impact

An attacker can achieve remote code execution as root on the Coolify server by crafting a malicious docker-compose.yaml file in a repository that a victim user imports, resulting in complete system compromise.

Affected Products

  • Coolify versions prior to 4.0.0-beta.445
  • Coolify deployments using the Docker Compose build pack
  • Self-hosted Coolify instances processing untrusted repositories

Discovery Timeline

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

Technical Details for CVE-2025-64419

Vulnerability Analysis

This vulnerability falls under CWE-77 (Command Injection), a class of security flaws where untrusted data is incorporated into commands executed by an interpreter. The attack requires user interaction—specifically, a victim must create an application from an attacker-controlled Git repository using Coolify's Docker Compose build pack. Once this action is taken, the attacker gains the ability to execute arbitrary commands with root-level privileges on the underlying Coolify server.

The exploitation scenario is particularly dangerous in multi-tenant environments or scenarios where users may import third-party repositories without thoroughly auditing their contents. The scope extends beyond the vulnerable component itself, potentially affecting the confidentiality, integrity, and availability of the entire host system and any other applications managed by the Coolify instance.

Root Cause

The root cause of CVE-2025-64419 lies in the improper handling of user-supplied Docker Compose commands. When processing custom Docker Compose build and start commands, the application failed to properly sanitize or validate parameters extracted from the docker-compose.yaml file before incorporating them into shell commands. This lack of input sanitization allowed malicious content embedded in the compose file to be executed directly by the system shell.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker must:

  1. Create a malicious Git repository containing a crafted docker-compose.yaml file
  2. Convince a victim Coolify user to import this repository using the Docker Compose build pack
  3. When the victim creates the application, the malicious parameters from the compose file are passed unsanitized to shell commands
  4. The injected commands execute with root privileges on the Coolify server

The following code shows part of the security patch implementing the injectDockerComposeFlags function that sanitizes Docker Compose commands:

php
/**
 * Auto-inject -f and --env-file flags into a docker compose command if not already present
 *
 * @param  string  $command  The docker compose command to modify
 * @param  string  $composeFilePath  The path to the compose file
 * @param  string  $envFilePath  The path to the .env file
 * @return string The modified command with injected flags
 */
function injectDockerComposeFlags(string $command, string $composeFilePath, string $envFilePath): string
{
    $dockerComposeReplacement = 'docker compose';

    // Add -f flag if not present (checks for both -f and --file with various formats)
    // Detects: -f path, -f=path, -fpath (concatenated), --file path, --file=path with any whitespace (space, tab, newline)
    if (! preg_match('/(?:^|\s)(?:-f(?:[=\s]|\S)|--file(?:=|\s))/', $command)) {
        $dockerComposeReplacement .= " -f {$composeFilePath}";
    }

    // Add --env-file flag if not present (checks for --env-file with various formats)
    // Detects: --env-file path, --env-file=path with any whitespace
    if (! preg_match('/(?:^|\s)--env-file(?:=|\s)/', $command)) {
        $dockerComposeReplacement .= " --env-file {$envFilePath}";
    }

    // Replace only first occurrence to avoid modifying comments/strings/chained commands
    return preg_replace('/docker\s+compose/', $dockerComposeReplacement, $command, 1);
}

Source: GitHub Commit f86ccfaa9af572a5487da8ea46b0a125a4854cf6

Detection Methods for CVE-2025-64419

Indicators of Compromise

  • Unexpected process execution on Coolify servers, particularly commands spawned from PHP worker processes
  • Suspicious activity in Docker Compose deployment logs showing malformed or unusual command patterns
  • Newly created applications from external or unrecognized Git repositories
  • Evidence of privilege escalation or unauthorized root-level access on the host system
  • Anomalous outbound network connections from the Coolify server

Detection Strategies

  • Monitor system logs for unexpected command execution patterns originating from Coolify processes
  • Implement file integrity monitoring on critical Coolify configuration files and binaries
  • Review Git repository imports and flag applications created from untrusted external sources
  • Deploy endpoint detection and response (EDR) solutions to identify command injection patterns
  • Audit Docker Compose files for suspicious or obfuscated content before deployment

Monitoring Recommendations

  • Enable verbose logging for Coolify application deployments and Docker Compose operations
  • Set up alerts for root-level command execution outside normal Coolify operational patterns
  • Monitor for creation of new user accounts or SSH keys on the host system
  • Track network connections from the Coolify server to identify potential command-and-control traffic
  • Implement behavior-based detection for anomalous process trees spawned by web application processes

How to Mitigate CVE-2025-64419

Immediate Actions Required

  • Upgrade Coolify to version 4.0.0-beta.445 or later immediately
  • Audit all recently imported repositories and applications created using the Docker Compose build pack
  • Review server logs for any indicators of exploitation or unauthorized command execution
  • Restrict access to Coolify administration interfaces to trusted users only
  • Consider isolating Coolify instances in network segments with limited access to sensitive resources

Patch Information

The vulnerability has been addressed in Coolify version 4.0.0-beta.445. The fix implements proper sanitization of Docker Compose commands through the injectDockerComposeFlags function, which validates and controls the flags passed to Docker Compose operations. Users should upgrade immediately by pulling the latest version from the official Coolify repository. For detailed technical information about the fix, refer to the GitHub Commit and the GitHub Security Advisory GHSA-234r-xrrg-m8f3.

Workarounds

  • Disable or restrict the Docker Compose build pack until the patch can be applied
  • Implement strict repository allowlisting to prevent imports from untrusted sources
  • Require manual review and approval of all docker-compose.yaml files before application creation
  • Run Coolify in a containerized environment with limited host access to reduce impact of potential exploitation
  • Enforce the principle of least privilege for Coolify service accounts
bash
# Verify your Coolify version and upgrade if necessary
cd /path/to/coolify
git fetch --tags
git describe --tags
# Upgrade to patched version
git checkout v4.0.0-beta.445
# Restart Coolify services
docker compose down && docker compose up -d

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

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-234r-xrrg-m8f3
  • Related CVEs
  • CVE-2025-59156: Coolify RCE Vulnerability

  • CVE-2025-59157: Coolify Command Injection 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