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-2022-24711

CVE-2022-24711: CodeIgniter4 RCE Vulnerability

CVE-2022-24711 is a remote code execution vulnerability in CodeIgniter4 caused by improper input validation that allows attackers to execute CLI routes via HTTP requests. This article covers technical details, affected versions, and patches.

Published: February 11, 2026

CVE-2022-24711 Overview

CVE-2022-24711 is a critical improper input validation vulnerability affecting CodeIgniter4, the 4.x branch of the CodeIgniter PHP full-stack web framework. Prior to version 4.1.9, the framework fails to properly validate input, allowing attackers to execute CLI (Command Line Interface) routes via HTTP requests. This vulnerability enables remote attackers to invoke commands that should only be accessible from the command line, potentially leading to unauthorized actions, data manipulation, or complete system compromise.

Critical Impact

Remote attackers can execute CLI-only routes through HTTP requests without authentication, potentially gaining unauthorized access to administrative functions and system commands that were intended to be protected from web access.

Affected Products

  • CodeIgniter4 versions prior to 4.1.9
  • Applications built on CodeIgniter4 that expose CLI routes
  • Web servers running vulnerable CodeIgniter4 applications

Discovery Timeline

  • 2022-02-28 - CVE-2022-24711 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24711

Vulnerability Analysis

This vulnerability stems from improper input validation (CWE-20) in CodeIgniter4's routing mechanism. The framework failed to adequately distinguish between HTTP requests and CLI requests when processing routes. This architectural flaw allowed attackers to craft malicious HTTP requests that would trigger CLI-only routes, effectively bypassing the intended access control separation between web and command-line interfaces.

The attack can be executed remotely over the network without requiring any privileges or user interaction. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability of the affected system, as attackers gain the ability to execute commands that were designed to be restricted to server administrators with CLI access.

Root Cause

The root cause is an improper input validation issue where CodeIgniter4's routing system failed to properly verify the execution context of incoming requests. The framework did not adequately enforce separation between CLI routes and HTTP routes, allowing the request type to be spoofed or manipulated. This means routes defined exclusively for CLI execution could be invoked through carefully crafted HTTP requests.

Attack Vector

The attack vector is network-based, requiring the attacker to send specially crafted HTTP requests to the vulnerable CodeIgniter4 application. The attacker does not need authentication or any special privileges to exploit this vulnerability. By manipulating request parameters or headers, an attacker can trick the application into routing the request as if it were a CLI command, thereby executing restricted functionality.

text
         "psr/log": "^1.1"
     },
     "require-dev": {
-        "codeigniter/coding-standard": "^1.1",
+        "codeigniter/coding-standard": "1.2.*",
         "fakerphp/faker": "^1.9",
-        "friendsofphp/php-cs-fixer": "^3.1",
+        "friendsofphp/php-cs-fixer": "3.2.*",
         "mikey179/vfsstream": "^1.6",
         "nexusphp/cs-config": "^3.3",
         "nexusphp/tachycardia": "^1.0",
-        "phpstan/phpstan": "^1.0",
+        "phpstan/phpstan": "1.4.3",
         "phpunit/phpunit": "^9.1",
         "predis/predis": "^1.1",
         "rector/rector": "0.12.10"

Source: GitHub Security Patch

Detection Methods for CVE-2022-24711

Indicators of Compromise

  • Unusual HTTP requests targeting CLI route paths or endpoints in web server access logs
  • HTTP requests containing CLI-specific parameters or command-line arguments
  • Unexpected execution of CLI-designated commands during web request processing
  • Application logs showing CLI route execution without corresponding shell access

Detection Strategies

  • Monitor web application firewall (WAF) logs for requests attempting to access known CLI route patterns
  • Implement application-level logging to track route resolution and flag HTTP requests that resolve to CLI routes
  • Deploy intrusion detection rules to identify HTTP requests containing CLI-specific payloads or headers
  • Review CodeIgniter4 application logs for route resolution anomalies

Monitoring Recommendations

  • Configure alerting for HTTP requests to endpoints typically reserved for CLI operations
  • Enable verbose logging in CodeIgniter4 to capture route resolution details
  • Monitor for unusual patterns of administrative function execution through web interfaces
  • Implement real-time log analysis to detect exploitation attempts

How to Mitigate CVE-2022-24711

Immediate Actions Required

  • Upgrade CodeIgniter4 to version 4.1.9 or later immediately
  • Review application logs for signs of exploitation attempts
  • Audit all CLI routes defined in your CodeIgniter4 applications for potential exposure
  • Implement network-level restrictions to limit access to the application while patching

Patch Information

The CodeIgniter team has released version 4.1.9 which contains the security fix for this vulnerability. The patch implements proper validation to ensure CLI routes cannot be executed via HTTP requests. The fix can be reviewed in the GitHub commit 202f41ad. Organizations should update their composer dependencies to pull the latest secure version. For additional technical details, refer to the GitHub Security Advisory GHSA-xjp4-6w75-qrj7.

Workarounds

  • There are currently no known workarounds for this vulnerability according to the security advisory
  • The only effective mitigation is upgrading to version 4.1.9 or later
  • As a temporary measure, consider restricting network access to the application until patching is complete
bash
# Update CodeIgniter4 to patched version
composer require codeigniter4/framework:^4.1.9

# Verify the installed version
composer show codeigniter4/framework | grep version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCodeigniter

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Security Advisory GHSA-xjp4-6w75-qrj7
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2025-54418: CodeIgniter ImageMagick RCE Vulnerability

  • CVE-2022-21647: CodeIgniter RCE Vulnerability

  • CVE-2026-34572: CI4MS Authentication Bypass Vulnerability

  • CVE-2026-34560: CI4MS CodeIgniter CMS XSS Vulnerability
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