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-2026-25129

CVE-2026-25129: PsySH Privilege Escalation Vulnerability

CVE-2026-25129 is a privilege escalation vulnerability in PsySH, a PHP developer console. Attackers can execute arbitrary code via malicious .psysh.php files. This article covers technical details, affected versions, and patches.

Published: February 6, 2026

CVE-2026-25129 Overview

CVE-2026-25129 is a CWD (Current Working Directory) configuration poisoning vulnerability affecting PsySH, a popular runtime developer console, interactive debugger, and REPL for PHP. Prior to versions 0.11.23 and 0.12.19, PsySH automatically loads and executes a .psysh.php file from the Current Working Directory on startup, creating a local privilege escalation attack vector.

If an attacker can write to a directory that a victim later uses as their CWD when launching PsySH, the attacker can trigger arbitrary code execution in the victim's context. This is particularly dangerous when privileged users such as root, CI runners, or ops/debug accounts launch PsySH from attacker-writable directories.

Critical Impact

Local privilege escalation through CWD configuration poisoning allows attackers to execute arbitrary code with elevated privileges when privileged users run PsySH or downstream tools like Laravel Tinker from attacker-controlled directories.

Affected Products

  • PsySH versions prior to 0.11.23
  • PsySH versions prior to 0.12.19
  • Downstream consumers embedding PsySH (e.g., Laravel Tinker via php artisan tinker)

Discovery Timeline

  • 2026-01-30 - CVE CVE-2026-25129 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25129

Vulnerability Analysis

This vulnerability stems from PsySH's automatic configuration file loading behavior. When PsySH initializes, it searches for and automatically executes a .psysh.php configuration file located in the user's Current Working Directory. This design choice, while convenient for developer customization, creates a significant security risk in shared or multi-user environments.

The vulnerability is classified as CWE-427 (Uncontrolled Search Path Element), where the application searches for critical resources in locations that may be under attacker control. The local attack vector requires user interaction, as a victim must manually launch PsySH or a dependent tool while their shell is positioned in an attacker-writable directory.

The impact extends beyond standalone PsySH usage to downstream consumers that embed the library. Laravel Tinker, for example, leverages PsySH for its interactive shell functionality. When a privileged user executes php artisan tinker from an attacker-writable directory containing a malicious .psysh.php file, the auto-load behavior executes attacker-controlled code under the victim's privileges.

Root Cause

The root cause is PsySH's implicit trust of the Current Working Directory as a safe configuration source. The application lacks proper validation and security controls around loading executable configuration files from potentially untrusted locations. The design assumes the CWD is always under the legitimate user's control, which is not true in shared environments, temporary directories, or web application deployments.

Attack Vector

The attack requires local access with the ability to write files to a directory that a privileged user may later use as their working directory. Common attack scenarios include:

  1. Shared Development Environments: An attacker with low-privilege access places a malicious .psysh.php in a shared project directory or temporary folder
  2. CI/CD Pipelines: Compromised or malicious code in a repository includes a .psysh.php file that executes when CI runners invoke PsySH or Tinker
  3. Web Application Directories: An attacker who gains write access to a web directory (through another vulnerability) can poison the directory for subsequent privileged debugging sessions

The malicious .psysh.php file can contain arbitrary PHP code that executes with the permissions of the user launching PsySH, enabling privilege escalation, data exfiltration, or persistence mechanisms.

Detection Methods for CVE-2026-25129

Indicators of Compromise

  • Unexpected .psysh.php files appearing in project directories, temporary folders, or web roots
  • Anomalous process execution chains where PHP processes spawn unexpected child processes
  • Unauthorized file modifications or new files created with elevated privileges after PsySH/Tinker usage
  • Evidence of privilege escalation activities following developer debugging sessions

Detection Strategies

  • Implement file integrity monitoring (FIM) to detect creation of .psysh.php files in sensitive directories
  • Monitor for PsySH or php artisan tinker execution in unusual contexts or directories
  • Review system logs for PHP processes running with elevated privileges that spawn unexpected commands
  • Audit CI/CD pipeline configurations for unexpected configuration file loading

Monitoring Recommendations

  • Configure SentinelOne to alert on .psysh.php file creation events in monitored directories
  • Establish baseline behavior for PHP development tools and alert on deviations
  • Monitor for command execution patterns indicative of privilege escalation post-exploitation
  • Implement directory permission auditing to identify overly permissive shared directories

How to Mitigate CVE-2026-25129

Immediate Actions Required

  • Upgrade PsySH to version 0.11.23 or 0.12.19 (or later) immediately
  • Audit all projects and directories for unexpected .psysh.php files
  • Review directory permissions to ensure privileged users don't have CWD set to attacker-writable locations when running PsySH
  • Update Laravel and Tinker dependencies to pull in patched PsySH versions

Patch Information

The PsySH maintainers have released patched versions that address the CWD configuration poisoning vulnerability. Organizations should upgrade to the following versions:

  • PsySH 0.11.x branch: Upgrade to version 0.11.23 or later (GitHub Release v0.11.23)
  • PsySH 0.12.x branch: Upgrade to version 0.12.19 or later (GitHub Release v0.12.19)

For full technical details, refer to the GitHub Security Advisory GHSA-4486.

Workarounds

  • Avoid running PsySH or Laravel Tinker with elevated privileges from shared or untrusted directories
  • Implement directory whitelisting policies that prevent execution of development tools from common attacker-writable paths (e.g., /tmp, /var/tmp)
  • Use explicit configuration file paths instead of relying on auto-discovery mechanisms
  • Restrict write access to project directories to authorized personnel only
bash
# Configuration example - Check for and remove suspicious .psysh.php files
find /var/www -name ".psysh.php" -type f -exec ls -la {} \;
# Remove unauthorized configuration files
find /var/www -name ".psysh.php" -type f -exec rm -i {} \;
# Set restrictive permissions on project directories
chmod 755 /var/www/your-project
chown root:developers /var/www/your-project

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechPsysh

  • SeverityMEDIUM

  • CVSS Score6.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-427
  • Technical References
  • GitHub Release v0.11.23

  • GitHub Release v0.12.19

  • GitHub Security Advisory GHSA-4486
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | 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