CVE-2021-21702

published 15 Feb 2021 · updated 1 Oct 2025

Null Dereference in SoapClient

5.3MediumCVSS 5.3EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in PHP 7.3.27, PHP 7.4.15 and PHP 8.0.2.

In PHP versions 7.3.x below 7.3.27, 7.4.x below 7.4.15 and 8.0.x below 8.0.2, when using SOAP extension to connect to a SOAP server, a malicious SOAP server could return malformed XML data as a response that would cause PHP to access a null pointer and thus cause a crash.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.3.x <7.3.27, >=7.4.x <7.4.15, >=8.0.X <8.0.27.3.27, 7.4.15, 8.0.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-21702 severity on Zeptric[![CVE-2021-21702](https://zeptric.io/badge/cve/CVE-2021-21702.svg)](https://zeptric.io/cve/CVE-2021-21702)