CVE-2021-21702: Null Dereference in SoapClient

Published Feb 1, 2021
·
Updated

Fixed bug (Null Dereference in SoapClient). (CVE-2021-21702)

Other sources

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.

Missing check in nodeisequalex function in ext/soap/phpxml.c leads to a NULL pointer dereference.

Reference: https://bugs.php.net/bug.php?id=80672

— Red Hat

Affected Software

24 affected componentsFixes available
PHP PHP<8.0.2
8.0.2
PHP PHP>=7.3.0<7.3.27
PHP PHP>=7.4.0<7.4.15
PHP PHP>=8.0.0<8.0.2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp Clustered Data ONTAP
Oracle Communications Diameter Signaling Router>=8.0.0<=8.5.0
Microsoft cbl2 php
alpine/php7<7.3.27-r0
7.3.27-r0
alpine/php7<7.4.15-r0
7.4.15-r0
alpine/php7<7.4.15-r0
7.4.15-r0
alpine/php7<7.4.15-r0
7.4.15-r0
alpine/php8<8.0.2-r0
8.0.2-r0
alpine/php8<8.0.2-r0
8.0.2-r0
alpine/php8<8.0.2-r0
8.0.2-r0
alpine/php8<8.0.2-r0
8.0.2-r0
redhat/php<7.3.27
7.3.27
redhat/php<8.0.2
8.0.2
debian/php7.4<7.4.15-1
7.4.15-1
debian/php7.0
7.0.33-0+deb9u11
debian/php7.3
7.3.27-1~deb10u1
debian/php7.4
7.4.15-1
debian/php8.0
8.0.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.0.2
  2. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.3.27-r0
  3. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.4.15-r0
  4. Upgrade

    Upgrade alpine/php8 to a version that resolves this vulnerability.

    Fixed in 8.0.2-r0
  5. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.3.27
  6. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 8.0.2
  7. Upgrade

    Upgrade debian/php7.4 to a version that resolves this vulnerability.

    Fixed in 7.4.15-1
  8. Upgrade

    Upgrade debian/php7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.33-0+deb9u11
  9. Upgrade

    Upgrade debian/php7.3 to a version that resolves this vulnerability.

    Fixed in 7.3.27-1~deb10u1
  10. Upgrade

    Upgrade debian/php8.0 to a version that resolves this vulnerability.

    Fixed in 8.0.2-1
  11. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.27
  12. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.4.15

Event History

Feb 1, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Feb 4, 2021
Data Sourced
12:00 AM
DescriptionAffected Software
Updated
12:00 AM
Affected Software
Data Sourced
via Red Hat·06:10 PM
DescriptionSeverityAffected Software
Feb 15, 2021
CVE Published
via MITRE·04:10 AM
Data Sourced
via OSV·04:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 10, 2021
Data Sourced
05:58 PM
RemedySeverityWeakness
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID for this bug?

The vulnerability ID for this bug is CVE-2021-21702.

2

What is the title of this bug?

The title of this bug is 'Fixed bug (Null Dereference in SoapClient). (CVE-2021-21702)'

3

What is the description of this bug?

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.

4

What is the severity of CVE-2021-21702?

The severity of CVE-2021-21702 is high with a CVSS score of 7.5.

5

How can I fix CVE-2021-21702?

To fix CVE-2021-21702, update PHP to version 8.0.2 if you are using PHP 8.0.x, and update to the latest available versions if you are using PHP 7.3.x or 7.4.x.

6

Where can I find more information about CVE-2021-21702?

You can find more information about CVE-2021-21702 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203