A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2024-56145

CVE-2024-56145: Craft CMS Remote Code Execution Vulnerability

CVE-2024-56145 is a remote code execution vulnerability in Craft CMS affecting systems with register_argc_argv enabled. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, affected versions, and patches.

Published: January 28, 2026

CVE-2024-56145 Overview

CVE-2024-56145 is a critical remote code execution vulnerability in Craft CMS, a flexible, user-friendly content management system for creating custom digital experiences. This vulnerability affects Craft CMS installations where the PHP configuration has register_argc_argv enabled, allowing unauthenticated attackers to achieve remote code execution through a network-accessible attack vector.

Critical Impact

This vulnerability has been added to CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Unauthenticated attackers can achieve complete system compromise through remote code execution.

Affected Products

  • Craft CMS versions prior to 3.9.14
  • Craft CMS versions prior to 4.13.2
  • Craft CMS versions prior to 5.5.2

Discovery Timeline

  • 2024-12-18 - CVE-2024-56145 published to NVD
  • 2025-10-24 - Last updated in NVD database

Technical Details for CVE-2024-56145

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code, also known as Code Injection). The flaw exists in how Craft CMS processes certain input when the PHP register_argc_argv directive is enabled in the server's php.ini configuration.

When register_argc_argv is enabled, PHP populates the $_SERVER['argv'] and $_SERVER['argc'] variables with command-line arguments passed to the script. In a web context, this setting can be abused to inject malicious parameters through the query string, as the query string is parsed into the argv array. Craft CMS fails to properly sanitize or validate these injected arguments before processing them, creating an attack surface for code injection.

The vulnerability allows unauthenticated remote attackers to execute arbitrary code on the target server without any user interaction. This represents a complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of CVE-2024-56145 lies in the application's failure to account for the behavior of PHP's register_argc_argv directive. When this directive is enabled, user-controlled input from the HTTP query string can be passed to the application as command-line arguments, bypassing expected input validation mechanisms.

The vulnerable code path does not sanitize or validate the contents of $_SERVER['argv'] before using them in security-sensitive operations, allowing attackers to inject malicious payloads that ultimately lead to code execution.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can craft a malicious HTTP request to a vulnerable Craft CMS instance where register_argc_argv is enabled. The query string parameters are parsed into the argv array, and the injected payload is processed by the vulnerable code path, resulting in arbitrary code execution.

The exploitation complexity is low, and public proof-of-concept code is available in the GitHub PoC Repository. Given the active exploitation documented by CISA, organizations should treat remediation as an emergency priority.

Detection Methods for CVE-2024-56145

Indicators of Compromise

  • Unusual HTTP requests with complex or encoded query string parameters targeting Craft CMS endpoints
  • Web server logs showing requests with command-injection patterns or shell metacharacters in query strings
  • Unexpected process spawning from the PHP process or web server worker processes
  • New or modified files in the Craft CMS installation directory, particularly in writable directories

Detection Strategies

  • Monitor web application firewall (WAF) logs for requests containing shell metacharacters, command injection patterns, or unusual encoding in query strings
  • Implement network intrusion detection rules to identify exploitation attempts targeting Craft CMS instances
  • Review PHP process behavior for unexpected child process creation or network connections
  • Deploy file integrity monitoring on the Craft CMS installation to detect unauthorized modifications

Monitoring Recommendations

  • Enable detailed access logging on web servers hosting Craft CMS and retain logs for forensic analysis
  • Configure alerting for any modification to critical Craft CMS configuration files
  • Monitor system resource usage for anomalies that could indicate post-exploitation activity
  • Implement egress filtering to detect command-and-control communications from compromised servers

How to Mitigate CVE-2024-56145

Immediate Actions Required

  • Update Craft CMS immediately to version 3.9.14, 4.13.2, or 5.5.2 depending on your installed major version
  • If patching is not immediately possible, disable register_argc_argv in your php.ini configuration as a temporary mitigation
  • Verify PHP configuration across all environments (development, staging, production) to ensure consistency
  • Conduct a forensic review of affected systems if they were exposed prior to patching, given the known exploitation status

Patch Information

Craft CMS has released security updates addressing this vulnerability. The fix is documented in the GitHub Commit Changes. Organizations should update to one of the following patched versions:

  • Version 3.9.14 for Craft CMS 3.x installations
  • Version 4.13.2 for Craft CMS 4.x installations
  • Version 5.5.2 for Craft CMS 5.x installations

Additional technical details are available in the GitHub Security Advisory.

Workarounds

  • Disable register_argc_argv in the PHP configuration to eliminate the attack vector
  • Implement WAF rules to block requests containing suspicious query string patterns targeting Craft CMS
  • Restrict network access to Craft CMS administrative interfaces to trusted IP ranges
  • Consider placing the Craft CMS installation behind a reverse proxy with additional request filtering capabilities
bash
# Disable register_argc_argv in php.ini
# Locate your php.ini file and add or modify the following line:
register_argc_argv = Off

# Restart your web server/PHP-FPM after making changes
# For Apache:
sudo systemctl restart apache2

# For Nginx with PHP-FPM:
sudo systemctl restart php-fpm

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCraft Cms

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability93.68%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-94
  • Technical References
  • GitHub PoC Repository

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-68456

  • CVE-2025-68455

  • CVE-2025-68454

  • CVE-2025-68437

  • CVE-2025-68436

  • CVE-2025-35939

  • CVE-2025-46731

  • CVE-2025-32432
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
  • English
  • 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