A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-41570

CVE-2026-41570: PHPUnit RCE Vulnerability

CVE-2026-41570 is a remote code execution vulnerability in PHPUnit that allows attackers to inject arbitrary INI directives and execute malicious code. This article covers the technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-41570 Overview

CVE-2026-41570 is an argument injection vulnerability [CWE-88] in PHPUnit, a widely used testing framework for PHP. Affected versions 12.5.21 and 13.1.5 forward PHP INI settings to child processes as -d name=value command-line arguments without neutralizing INI metacharacters. An attacker who can influence a single INI value can inject additional directives, including auto_prepend_file, into the child process configuration. Setting auto_prepend_file to an attacker-controlled path achieves code execution in the child PHP process. The maintainers patched the issue in versions 12.5.22 and 13.1.6.

Critical Impact

Attackers controlling a single forwarded INI value can inject arbitrary directives and execute code in PHPUnit child processes used for isolated and PHPT test execution.

Affected Products

  • PHPUnit 12.5.21
  • PHPUnit 13.1.5
  • PHP projects relying on PHPUnit for isolated or PHPT test execution

Discovery Timeline

  • 2026-05-08 - CVE-2026-41570 published to NVD
  • 2026-05-08 - Last updated in NVD database

Technical Details for CVE-2026-41570

Vulnerability Analysis

PHPUnit spawns child PHP processes to run tests in isolation and to execute PHPT files. When doing so, it forwards INI settings from the parent configuration to the child process using -d name=value command-line arguments. The framework does not sanitize the value portion before passing it to the child interpreter.

PHP's INI parser treats specific characters as syntax. The double quote acts as a string delimiter, the semicolon marks the start of a comment, and a newline separates directives. A value containing a newline is parsed by the child as multiple INI directives rather than a single setting.

An attacker who controls one INI value can append directives such as auto_prepend_file, extension, disable_functions, or open_basedir. Pointing auto_prepend_file at an attacker-controlled file causes PHP to execute that file before the requested script runs, yielding code execution in the child process.

Root Cause

The root cause is missing input neutralization before constructing child process arguments [CWE-88]. PHPUnit concatenates INI values into the command line without escaping or rejecting newline, quote, and comment characters that carry syntactic meaning to PHP's INI parser.

Attack Vector

Exploitation requires local access and the ability to influence at least one INI value that PHPUnit forwards to a child process. This can occur in continuous integration pipelines, shared development environments, or any workflow where untrusted input flows into PHPUnit's INI configuration. Once a newline-containing value is forwarded, the child PHP interpreter parses injected directives and loads attacker-controlled code.

The vulnerability is a parser-level injection. No verified public exploit code is published.
See the GHSA-qrr6-mg7r-m243 advisory for technical details on the injection primitive.

Detection Methods for CVE-2026-41570

Indicators of Compromise

  • Unexpected auto_prepend_file, auto_append_file, or extension directives appearing in child PHP process command lines spawned by PHPUnit.
  • PHPUnit -d arguments containing newline characters, embedded quotes, or semicolons.
  • PHP child processes loading files outside the project source tree during test runs.

Detection Strategies

  • Inspect process command-line telemetry for php invocations originating from PHPUnit that contain suspicious -d payloads or non-printable characters.
  • Audit test runner logs and CI job artifacts for unexpected INI directives or file reads outside the workspace.
  • Run software composition analysis to flag PHPUnit 12.5.21 or 13.1.5 in project dependencies and lockfiles.

Monitoring Recommendations

  • Track child process creation events from PHPUnit, capturing full command lines for forensic review.
  • Alert on PHP processes reading or including files from world-writable directories during test execution.
  • Monitor changes to CI environment variables and configuration files that feed INI values into PHPUnit.

How to Mitigate CVE-2026-41570

Immediate Actions Required

  • Upgrade PHPUnit to version 12.5.22 or 13.1.6 across development, CI, and build environments.
  • Audit project configuration and CI pipelines for INI values sourced from untrusted input passed to PHPUnit.
  • Rotate any secrets or credentials accessible to test runners on hosts that ran vulnerable PHPUnit versions.

Patch Information

The maintainers fixed the issue in PHPUnit 12.5.22 and 13.1.6. The fix neutralizes INI metacharacters before forwarding values to child processes. Patch details are available in the PHPUnit Pull Request #6592 and the GHSA-qrr6-mg7r-m243 Security Advisory.

Workarounds

  • Restrict PHPUnit execution to trusted INI inputs and reject values containing newline, quote, or semicolon characters.
  • Run test suites in ephemeral, isolated containers with open_basedir restrictions and read-only filesystem mounts where feasible.
  • Remove or guard environment variables that influence PHP INI settings during CI test execution.
bash
# Upgrade PHPUnit via Composer to a patched release
composer require --dev phpunit/phpunit:^13.1.6

# Or for the 12.x branch
composer require --dev phpunit/phpunit:^12.5.22

# Verify the installed version
./vendor/bin/phpunit --version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPhpunit

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-88
  • Vendor Resources
  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-24765: PHPUnit RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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