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-2024-8927

CVE-2024-8927: PHP Path Traversal Vulnerability

CVE-2024-8927 is a path traversal vulnerability in PHP that allows attackers to bypass cgi.force_redirect through HTTP header manipulation, enabling arbitrary file inclusion. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-8927 Overview

A critical vulnerability has been identified in PHP's CGI binary implementation where the HTTP_REDIRECT_STATUS variable, used to verify whether the CGI binary is being executed by the HTTP server, can be manipulated by attackers through HTTP headers. This bypass of the cgi.force_redirect security option can lead to arbitrary file inclusion in certain server configurations, potentially allowing attackers to read sensitive files or execute malicious code.

Critical Impact

Attackers can bypass CGI security controls via HTTP header manipulation, potentially leading to arbitrary file inclusion and unauthorized access to sensitive system files in PHP-based web applications.

Affected Products

  • PHP 8.1.* versions before 8.1.30
  • PHP 8.2.* versions before 8.2.24
  • PHP 8.3.* versions before 8.3.12

Discovery Timeline

  • 2024-10-08 - CVE-2024-8927 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-8927

Vulnerability Analysis

This vulnerability exists within PHP's CGI security mechanism. The cgi.force_redirect directive is a critical security feature designed to prevent direct execution of the PHP CGI binary by users, ensuring it is only invoked through a properly configured web server. The security check relies on the HTTP_REDIRECT_STATUS environment variable to verify that the request originated from the web server.

However, the vulnerability allows attackers to inject values into the HTTP_REDIRECT_STATUS variable through crafted HTTP headers. When successful, this manipulation tricks PHP into believing it was invoked by a legitimate web server redirect, bypassing the cgi.force_redirect protection entirely.

The impact of this bypass is significant: in certain configurations, an attacker can leverage this flaw to perform arbitrary file inclusion attacks. This could expose sensitive configuration files, application source code, or lead to remote code execution if combined with other attack vectors such as log poisoning or uploaded files.

Root Cause

The root cause stems from insufficient access control verification in PHP's CGI handling (CWE-1220). The HTTP_REDIRECT_STATUS variable was not properly validated to ensure it could only be set by the web server, allowing request submitters to influence its value through HTTP headers. This design flaw violates the principle of least privilege by trusting user-controllable input for security-critical decisions.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can send specially crafted HTTP requests to a vulnerable PHP CGI endpoint with manipulated headers that set the HTTP_REDIRECT_STATUS value. When the PHP CGI binary processes these requests, it incorrectly determines that the security redirect has occurred, disabling the cgi.force_redirect protection.

The attack flow involves:

  1. Identifying a target running PHP in CGI mode with vulnerable versions
  2. Crafting HTTP requests with headers that manipulate the HTTP_REDIRECT_STATUS variable
  3. Bypassing the cgi.force_redirect security check
  4. Exploiting the bypass to include arbitrary local files via file inclusion vectors

For detailed technical information about this vulnerability, refer to the PHP Security Advisory on GitHub.

Detection Methods for CVE-2024-8927

Indicators of Compromise

  • Unusual HTTP requests targeting PHP CGI endpoints with non-standard headers
  • Web server logs showing attempts to access sensitive files like /etc/passwd, configuration files, or PHP source code
  • Requests containing suspicious HTTP_REDIRECT_STATUS header values or manipulations
  • Error logs indicating file inclusion attempts on unexpected paths

Detection Strategies

  • Monitor web server access logs for requests attempting to directly invoke the PHP CGI binary
  • Implement Web Application Firewall (WAF) rules to detect and block requests with suspicious header manipulation patterns
  • Review PHP error logs for file inclusion warnings or attempts to access files outside the web root
  • Deploy intrusion detection signatures for known file inclusion attack patterns

Monitoring Recommendations

  • Enable detailed logging for PHP CGI execution and monitor for anomalous behavior
  • Configure alerting on failed file access attempts that may indicate exploitation attempts
  • Implement file integrity monitoring on critical system and configuration files
  • Monitor for unusual process execution patterns from the web server

How to Mitigate CVE-2024-8927

Immediate Actions Required

  • Upgrade PHP to the latest patched versions: 8.1.30, 8.2.24, or 8.3.12 or later
  • Review server configurations to ensure cgi.force_redirect is properly enabled
  • Consider migrating from PHP-CGI to PHP-FPM for improved security
  • Audit existing deployments for signs of compromise before patching

Patch Information

PHP has released security patches addressing this vulnerability in versions 8.1.30, 8.2.24, and 8.3.12. Organizations should update to these versions or later immediately. The official security advisory is available at the PHP GitHub Security Advisory.

Additional vendor advisories have been published:

  • Debian LTS Announcement
  • NetApp Security Advisory

Workarounds

  • If immediate patching is not possible, consider disabling PHP-CGI mode and switching to PHP-FPM
  • Implement strict Web Application Firewall rules to filter suspicious HTTP headers
  • Configure the web server to validate and sanitize the HTTP_REDIRECT_STATUS variable before passing it to PHP
  • Restrict direct access to the PHP CGI binary through server configuration
bash
# Example: Apache configuration to restrict CGI access
# Add to httpd.conf or virtual host configuration
<Directory "/usr/lib/cgi-bin">
    Options -ExecCGI
    AllowOverride None
    Require all denied
</Directory>

# For nginx, ensure PHP-FPM is used instead of CGI
# In nginx.conf or site configuration:
location ~ \.php$ {
    fastcgi_pass unix:/var/run/php/php-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
}

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.34%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-Other

  • CWE-1220
  • Technical References
  • Debian LTS Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-22427: GoTravel Path Traversal Vulnerability

  • CVE-2025-69409: PJ Coaching Theme Path Traversal Flaw

  • CVE-2021-21706: PHP Path Traversal Vulnerability

  • CVE-2025-52023: Gems CMS Information Disclosure 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