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

CVE-2022-25481: ThinkPHP Information Disclosure Flaw

CVE-2022-25481 is an information disclosure vulnerability in ThinkPHP Framework v5.0.24 that exposes system environment parameters through index.php. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-25481 Overview

CVE-2022-25481 is an Information Disclosure vulnerability affecting ThinkPHP Framework v5.0.24. The framework was discovered to be configured without the PATHINFO parameter, which allows attackers to access all system environment parameters from index.php. This vulnerability enables remote attackers to extract sensitive configuration data and environment variables that could be leveraged for further attacks against the application or underlying infrastructure.

Critical Impact

Remote attackers can access sensitive system environment parameters without authentication, potentially exposing database credentials, API keys, and other confidential configuration data.

Affected Products

  • ThinkPHP Framework v5.0.24
  • Applications built on ThinkPHP v5.0.24 with default configurations
  • Web servers hosting ThinkPHP applications with debugging mode enabled

Discovery Timeline

  • 2022-03-21 - CVE-2022-25481 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-25481

Vulnerability Analysis

This vulnerability stems from an improper configuration in ThinkPHP Framework v5.0.24 where the PATHINFO parameter is not properly set, resulting in the exposure of system environment parameters through the index.php endpoint. When this misconfiguration exists, attackers can craft requests to the application's entry point to retrieve environment variables that should remain protected.

It's important to note that this vulnerability is disputed by a third party who argues that system environment exposure is an intended feature of the debugging mode. However, if debugging mode is inadvertently left enabled in production environments, this behavior represents a significant security risk as it can leak sensitive information including database connection strings, API credentials, and internal network configurations.

The vulnerability is classified under CWE-668 (Exposure of Resource to Wrong Sphere) and CWE-284 (Improper Access Control), reflecting the core issue of sensitive data being accessible to unauthorized parties.

Root Cause

The root cause of this vulnerability is the absence of the PATHINFO parameter configuration in ThinkPHP v5.0.24. When this parameter is not properly configured, the framework fails to properly restrict access to internal debugging information. Combined with debugging mode being enabled (which may be the default or accidentally left on in production), this allows the framework to expose system environment variables through the web-accessible index.php endpoint.

Attack Vector

The attack vector for CVE-2022-25481 is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted HTTP requests directly to the index.php file of a vulnerable ThinkPHP application. The attack is straightforward and can be executed remotely, making it particularly dangerous for internet-facing applications.

The exploitation process involves accessing the application's entry point in a way that triggers the framework to reveal environment parameters. Since no special privileges or complex attack chains are required, the barrier to exploitation is low. Attackers can enumerate exposed environment variables to harvest credentials, internal paths, and configuration details that facilitate subsequent attacks.

For detailed technical information about the exploitation mechanism, refer to the GitHub InfoLeak Vulnerability Report.

Detection Methods for CVE-2022-25481

Indicators of Compromise

  • Unusual HTTP requests to index.php with unexpected parameters or path patterns
  • Access logs showing repeated requests attempting to retrieve environment variables
  • Requests containing debugging-related parameters or paths targeting the application entry point
  • Evidence of reconnaissance activity focused on framework identification and version enumeration

Detection Strategies

  • Monitor web server access logs for suspicious requests to index.php with unusual query patterns
  • Implement Web Application Firewall (WAF) rules to detect and block requests attempting to access debugging endpoints
  • Deploy intrusion detection systems (IDS) with signatures for ThinkPHP information disclosure attacks
  • Regularly scan applications using vulnerability scanners that can identify exposed debugging interfaces

Monitoring Recommendations

  • Enable verbose logging on web servers hosting ThinkPHP applications to capture detailed request information
  • Set up alerts for access patterns consistent with information gathering or reconnaissance activities
  • Monitor for outbound connections that may indicate harvested credentials being tested or exfiltrated
  • Implement file integrity monitoring on ThinkPHP configuration files to detect unauthorized changes to debugging settings

How to Mitigate CVE-2022-25481

Immediate Actions Required

  • Verify that debugging mode is disabled in all production ThinkPHP installations
  • Review and configure the PATHINFO parameter appropriately in the application configuration
  • Audit environment variables for sensitive information that could be exposed
  • Implement access controls to restrict access to the application's entry point from untrusted sources

Patch Information

ThinkPHP users should ensure that debugging mode is disabled in production environments by setting the appropriate configuration option. Review the official ThinkPHP documentation for guidance on securing framework configurations. If running v5.0.24 specifically, consider upgrading to a newer version where security configurations may be more robust by default.

For additional technical details and verification steps, consult the GitHub InfoLeak Vulnerability Report.

Workarounds

  • Disable debugging mode in production by setting 'app_debug' => false in the application configuration
  • Configure web server rules to restrict direct access to index.php debugging features
  • Use environment variable management practices that don't expose sensitive values through the web application
  • Implement network-level access controls to limit exposure of development or staging environments
bash
# Configuration example - Disable debugging mode in ThinkPHP config/app.php
# Set app_debug to false for production environments
# 'app_debug' => false,

# Additionally, ensure environment files are not web-accessible
# Add to .htaccess or nginx configuration
# deny access to sensitive configuration files
# location ~ /\.(env|git) {
#     deny all;
# }

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechThinkphp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability20.32%

  • 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
  • CWE-668

  • CWE-284
  • Technical References
  • GitHub InfoLeak Vulnerability Report
  • Related CVEs
  • CVE-2025-63888: ThinkPHP 5.0.24 RCE Vulnerability

  • CVE-2025-50706: ThinkPHP RCE Vulnerability

  • CVE-2022-47945: ThinkPHP Framework RCE 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