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
    • 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-6722

CVE-2026-6722: PHP SOAP Extension RCE Vulnerability

CVE-2026-6722 is a remote code execution vulnerability in PHP SOAP extension affecting versions 8.2-8.5. Attackers can exploit a use-after-free flaw to execute arbitrary code. This article covers technical details, affected versions, and patches.

Published: May 18, 2026

CVE-2026-6722 Overview

CVE-2026-6722 is a use-after-free vulnerability [CWE-416] in the PHP Simple Object Access Protocol (SOAP) extension. The flaw resides in the object deduplication mechanism, which stores pointers to PHP objects in a global map without incrementing their reference counts. An attacker controlling a SOAP request body can trigger a dangling pointer and reclaim the freed memory through PHP string allocations. Successful exploitation results in remote code execution on the affected server. The vulnerability affects PHP versions 8.2.x, 8.3.x, 8.4.x, and 8.5.x prior to their respective fixed releases.

Critical Impact

Network-reachable PHP applications parsing untrusted SOAP requests can be compromised, granting attackers arbitrary code execution under the web server process.

Affected Products

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

Discovery Timeline

  • 2026-05-10 - CVE-2026-6722 published to the National Vulnerability Database
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-6722

Vulnerability Analysis

The SOAP extension in PHP deduplicates objects during XML deserialization by tracking previously-decoded nodes in a global pointer map. The implementation stores raw pointers to PHP objects without incrementing their reference counts. This shortcut creates a mismatch between object lifetime and the references the deserializer relies on. When the SOAP parser revisits a node through an href reference, it expects the original object to remain valid in memory.

An apache:Map node with duplicate keys breaks that assumption. Processing the second entry overwrites the first in the temporary result map, which frees the original PHP object. The stale pointer remains in the global deduplication map. A subsequent href reference copies the dangling pointer into the result structure, completing the use-after-free condition.

Because PHP string allocations can reclaim the freed memory region, an attacker shapes the heap to place attacker-controlled bytes where the freed object lived. The resulting type confusion allows arbitrary memory read and write primitives, which lead to remote code execution under the PHP worker process.

Root Cause

The root cause is missing reference counting in the SOAP extension's object deduplication logic. Storing raw pointers in the global map without Z_ADDREF semantics allows freed objects to remain referenced after deallocation, violating PHP's memory ownership model.

Attack Vector

Exploitation requires sending a crafted SOAP request body to a PHP endpoint that invokes the SOAP extension to parse client input. No authentication is required when the target endpoint accepts unauthenticated SOAP traffic. The attacker embeds a duplicate-key apache:Map node followed by an href reference to the freed entry, then sprays controlled strings to reclaim the freed allocation.

Full technical details are documented in the PHP Security Advisory GHSA-85c2-q967-79q5.

Detection Methods for CVE-2026-6722

Indicators of Compromise

  • SOAP request bodies containing apache:Map nodes with duplicated child keys followed by href back-references to those keys
  • PHP-FPM or httpd worker crashes with segmentation faults shortly after receiving SOAP traffic
  • Unexpected child processes spawned by PHP worker processes following SOAP request handling
  • Outbound network connections initiated by PHP workers to unfamiliar hosts after SOAP parsing

Detection Strategies

  • Inspect web server access logs for requests posting text/xml or application/soap+xml payloads to endpoints that invoke SoapServer::handle()
  • Apply web application firewall (WAF) signatures that flag SOAP envelopes containing repeated key entries inside apache:Map elements
  • Monitor PHP error logs for zend_mm_heap corruption messages, invalid zval types, or SIGSEGV terminations of worker processes

Monitoring Recommendations

  • Enable process-execution telemetry on PHP application servers to detect child processes launched from php-fpm or httpd worker contexts
  • Aggregate worker crash counts and alert when SOAP-handling endpoints exhibit elevated abnormal termination rates
  • Capture full request bodies for SOAP endpoints in a forensic pipeline to support post-incident analysis

How to Mitigate CVE-2026-6722

Immediate Actions Required

  • Upgrade affected hosts to PHP 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or later as appropriate for the installed branch
  • Inventory all applications that load the SOAP extension via extension=soap and prioritize patching those reachable from untrusted networks
  • Restrict network access to SOAP endpoints to authenticated clients or trusted IP ranges until patches are applied

Patch Information

The PHP project released fixes in versions 8.2.31, 8.3.31, 8.4.21, and 8.5.6. The patches add proper reference counting to the SOAP extension's deduplication map so that stored object pointers remain valid for the lifetime of the deserialization operation. See the PHP Security Advisory GHSA-85c2-q967-79q5 for upstream commit references.

Workarounds

  • Disable the SOAP extension on servers that do not require it by removing or commenting the extension=soap line in php.ini
  • Deploy WAF rules that reject SOAP requests containing apache:Map elements with duplicate child keys
  • Place SOAP endpoints behind authentication and authorization layers to reduce unauthenticated attack surface
bash
# Disable the SOAP extension where it is not required
sudo sed -i 's/^extension=soap/;extension=soap/' /etc/php/8.3/fpm/php.ini
sudo systemctl restart php8.3-fpm

# Verify the SOAP extension is no longer loaded
php -m | grep -i soap || echo "SOAP extension disabled"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPhp

  • SeverityCRITICAL

  • CVSS Score9.5

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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:X/AU:Y/R:X/V:X/RE:M/U:Red
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-1874: PHP proc_open() RCE Vulnerability

  • CVE-2024-8926: PHP Command Injection RCE Vulnerability

  • CVE-2024-4577: PHP CGI on Windows RCE Vulnerability

  • CVE-2024-11235: PHP Use-After-Free RCE 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