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

CVE-2026-7261: PHP SoapServer Use-After-Free Vulnerability

CVE-2026-7261 is a use-after-free vulnerability in PHP SoapServer that can lead to memory corruption, information disclosure, or crashes. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 18, 2026

CVE-2026-7261 Overview

CVE-2026-7261 is a use-after-free vulnerability [CWE-416] in PHP's SoapServer implementation. The flaw exists when SoapServer is configured with SOAP_PERSISTENCE_SESSION, which persists the handler object across requests through session storage. When a SOAP request results in an error, the persistence logic frees the handler object while retaining a pointer to it. Subsequent access to that dangling pointer can trigger memory corruption, information disclosure, or process crashes. The vulnerability affects PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6.

Critical Impact

Remote attackers can trigger memory corruption in PHP processes running SOAP services with session persistence, potentially leading to information disclosure or service disruption.

Affected Products

  • PHP 8.2.* before 8.2.31
  • PHP 8.3.* before 8.3.31
  • PHP 8.4.* before 8.4.21 and 8.5.* before 8.5.6

Discovery Timeline

  • 2026-05-10 - CVE-2026-7261 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-7261

Vulnerability Analysis

The vulnerability resides in PHP's SOAP extension when developers enable SOAP_PERSISTENCE_SESSION on a SoapServer instance. This persistence mode stores the handler object in $_SESSION so that state survives across multiple SOAP requests from the same client. The handler lifecycle is tightly coupled with the session lifecycle, requiring careful reference management during error conditions.

When a SOAP request triggers an error during processing, the cleanup path frees the handler object prematurely. However, the session storage still retains a pointer reference to the freed memory region. On the next request that touches the persisted handler, PHP dereferences the stale pointer, producing classic use-after-free behavior. Attackers can leverage this primitive to corrupt heap memory, leak adjacent object contents, or crash the worker process.

The issue carries confidentiality, integrity, and availability impact because freed memory may be reallocated to attacker-controlled data before the dangling pointer is reused.

Root Cause

The root cause is incorrect reference counting and lifecycle management of the persisted SOAP handler object during error handling paths. The error path releases the handler object without clearing the corresponding session reference, leaving a dangling pointer in session storage.

Attack Vector

An unauthenticated remote attacker sends crafted SOAP requests to a vulnerable PHP application that exposes a SoapServer configured with SOAP_PERSISTENCE_SESSION. The attacker first triggers an error condition during SOAP processing, then issues a follow-up request reusing the same session to access the freed handler. Successful exploitation depends on heap layout and timing, which is why the attack complexity reflects required attacker preparation.

No verified public proof-of-concept code is currently available. Refer to the PHP Security Advisory GHSA-m33r-qmcv-p97q for upstream technical context.

Detection Methods for CVE-2026-7261

Indicators of Compromise

  • Unexpected segmentation faults or worker crashes in PHP-FPM or Apache mod_php processes handling SOAP traffic
  • SOAP error responses immediately followed by additional requests reusing the same PHPSESSID cookie
  • Anomalous session file contents referencing serialized SoapServer handler objects

Detection Strategies

  • Inventory PHP applications and identify any code paths invoking SoapServer::setPersistence(SOAP_PERSISTENCE_SESSION)
  • Monitor web server and PHP error logs for repeated SOAP fault entries correlated with process restarts
  • Inspect HTTP traffic for SOAP requests producing errors followed by rapid re-requests against the same endpoint and session

Monitoring Recommendations

  • Enable verbose logging in PHP error handlers and forward logs to a centralized analytics platform for correlation
  • Track PHP worker crash counts and restart frequency as a leading indicator of memory corruption attempts
  • Alert on outbound data anomalies from web servers hosting SOAP endpoints, which may indicate information disclosure

How to Mitigate CVE-2026-7261

Immediate Actions Required

  • Upgrade PHP to a fixed release: 8.2.31, 8.3.31, 8.4.21, or 8.5.6 as applicable to your branch
  • Audit application code for use of SOAP_PERSISTENCE_SESSION and disable it where not strictly required
  • Restrict access to SOAP endpoints to trusted networks while patching is in progress

Patch Information

PHP maintainers have released patched versions across all supported branches. Apply the updates referenced in the PHP Security Advisory GHSA-m33r-qmcv-p97q. After upgrading, restart PHP-FPM, Apache, or any long-running PHP worker processes to ensure the patched binary is loaded.

Workarounds

  • Change SoapServer persistence mode from SOAP_PERSISTENCE_SESSION to SOAP_PERSISTENCE_REQUEST to avoid cross-request handler reuse
  • Place a web application firewall rule that blocks repeated SOAP requests sharing a session ID after a fault response
  • Implement strict input validation upstream of the SOAP endpoint to reduce the probability of triggering server-side errors
bash
# Verify installed PHP version against the fixed releases
php -v

# Debian/Ubuntu: upgrade PHP packages
sudo apt update && sudo apt install --only-upgrade php php-soap

# RHEL/Alma/Rocky: upgrade PHP packages
sudo dnf upgrade php php-soap

# Restart PHP-FPM workers after upgrade
sudo systemctl restart php-fpm

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechPhp

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:Y/R:X/V:X/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-416
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2022-31627: PHP Use After Free Vulnerability

  • CVE-2021-21708: PHP Use-After-Free Vulnerability

  • CVE-2020-7068: PHP PHAR Use-After-Free Vulnerability

  • CVE-2025-14179: PHP PDO Firebird SQLi 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