Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-21702

CVE-2021-21702: PHP SOAP Extension DOS Vulnerability

CVE-2021-21702 is a denial of service vulnerability in PHP SOAP extension where malicious servers can crash PHP using malformed XML. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-21702 Overview

CVE-2021-21702 is a null pointer dereference vulnerability affecting PHP's SOAP extension that can be exploited to cause a denial of service condition. When a PHP application uses the SOAP extension to connect to a SOAP server, a malicious server can return specially crafted malformed XML data as a response. This malformed response causes PHP to access a null pointer, resulting in an application crash.

This vulnerability poses a significant risk to web applications and services that rely on PHP's SOAP extension for communication with external SOAP-based web services. An attacker controlling or impersonating a SOAP server could systematically crash PHP processes, disrupting service availability.

Critical Impact

Malicious SOAP servers can crash PHP applications by returning malformed XML responses, causing denial of service through null pointer dereference.

Affected Products

  • PHP versions 7.3.x below 7.3.27
  • PHP versions 7.4.x below 7.4.15
  • PHP versions 8.0.x below 8.0.2
  • Debian Linux 9.0 and 10.0
  • NetApp Clustered Data ONTAP
  • Oracle Communications Diameter Signaling Router

Discovery Timeline

  • 2021-02-15 - CVE-2021-21702 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21702

Vulnerability Analysis

This vulnerability is classified as CWE-476 (NULL Pointer Dereference). The flaw exists in PHP's SOAP extension, which is used to enable PHP applications to communicate with SOAP-based web services. When processing XML responses from SOAP servers, the extension fails to properly validate the response data before dereferencing memory pointers.

The vulnerability occurs during the parsing phase of SOAP responses. When a malicious SOAP server returns intentionally malformed XML data, the PHP SOAP extension's parser fails to handle the unexpected data structure gracefully. Instead of returning an error or handling the malformed data appropriately, the code attempts to dereference a null pointer, leading to an immediate crash of the PHP process.

Root Cause

The root cause of CVE-2021-21702 lies in insufficient validation of XML response data within the PHP SOAP extension. The code path responsible for parsing SOAP responses does not adequately check for null values before attempting to access memory locations. This missing validation allows malformed XML structures to trigger null pointer access, which the operating system handles as a segmentation fault, terminating the process.

The vulnerability specifically manifests when the SOAP response contains XML structures that the parser does not anticipate, causing internal data structures to remain uninitialized (null) when the code subsequently attempts to use them.

Attack Vector

The attack vector for this vulnerability requires network access. An attacker must be able to respond to SOAP requests made by the vulnerable PHP application. This can be achieved through several scenarios:

  1. Malicious SOAP Server: An attacker hosts a malicious SOAP service that the target application is configured to communicate with
  2. Man-in-the-Middle: An attacker intercepts legitimate SOAP traffic and injects malformed responses
  3. Compromised Service: An attacker compromises a legitimate SOAP service that the target application trusts

The exploitation requires no authentication and no user interaction. The vulnerability affects the availability of the application by causing crashes but does not directly impact confidentiality or integrity.

The attack involves the malicious SOAP server crafting an XML response with structural anomalies that cause PHP's SOAP extension to encounter null pointer conditions during parsing. For detailed technical analysis of the malformed XML structures that trigger this vulnerability, refer to the PHP Bug Report #80672.

Detection Methods for CVE-2021-21702

Indicators of Compromise

  • Unexpected PHP process crashes or segmentation faults when communicating with external SOAP services
  • Repeated service restarts or process respawns for PHP-FPM or Apache mod_php workers
  • Error logs containing null pointer dereference or segmentation fault messages correlated with SOAP operations
  • Unusual traffic patterns from SOAP endpoints returning malformed or suspicious XML responses

Detection Strategies

  • Monitor PHP error logs for segmentation fault errors, particularly those occurring during SOAP operations
  • Implement application-level monitoring to detect abnormal crash rates in PHP processes
  • Use network traffic analysis to identify malformed XML responses from SOAP servers
  • Deploy intrusion detection rules to identify anomalous SOAP response patterns

Monitoring Recommendations

  • Configure centralized logging for all PHP error output and crash dumps
  • Set up alerting thresholds for PHP process crash frequency to detect active exploitation attempts
  • Monitor SOAP endpoint connectivity and response validity as part of application health checks
  • Implement circuit breaker patterns in application code to limit impact of repeated crashes

How to Mitigate CVE-2021-21702

Immediate Actions Required

  • Upgrade PHP to patched versions: 7.3.27 or later, 7.4.15 or later, or 8.0.2 or later
  • Review all applications using PHP's SOAP extension and prioritize updates for internet-facing services
  • Implement input validation and response verification for SOAP communications where possible
  • Consider temporarily disabling SOAP functionality for non-critical services until patches are applied

Patch Information

Security patches addressing this vulnerability have been released by PHP and various Linux distributions. The following resources provide official patch information:

  • PHP Bug Report #80672 - Original bug report and fix details
  • Debian DSA-4856 Security Notice - Debian security advisory
  • Debian LTS Announcement - Debian LTS patch information
  • Gentoo GLSA 2021-05-23 - Gentoo Linux advisory
  • NetApp Security Advisory NTAP-20210312-0005 - NetApp advisory
  • Oracle CPU October 2021 Alert - Oracle patch information
  • Tenable Security Notice TNS-2021-14 - Tenable advisory

Workarounds

  • Restrict network access to only trusted SOAP servers by implementing firewall rules or network segmentation
  • Implement application-level validation of SOAP responses before passing to PHP's SOAP extension
  • Use process supervision to automatically restart crashed PHP processes and minimize service disruption
  • Consider using alternative SOAP client implementations or REST-based APIs where feasible
bash
# Check current PHP version for vulnerability
php -v | head -1

# Example: Upgrade PHP on Debian/Ubuntu systems
sudo apt update
sudo apt install php7.4  # or php8.0 for 8.x series

# Verify upgrade was successful
php -v | head -1

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • Debian LTS Announcement

  • Gentoo GLSA 2021-05-23

  • NetApp Security Advisory NTAP-20210312-0005

  • Debian DSA-4856 Security Notice

  • Tenable Security Notice TNS-2021-14
  • Vendor Resources
  • PHP Bug Report #80672

  • Oracle CPU October 2021 Alert
  • Related CVEs
  • CVE-2025-14180: PHP PDO PostgreSQL DoS Vulnerability

  • CVE-2025-6491: PHP SOAP Extension DoS Vulnerability

  • CVE-2025-1735: PHP pgsql/pdo_pgsql DOS Vulnerability

  • CVE-2024-2757: PHP mb_encode_mimeheader DoS 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