CVE-2021-21702: Null Dereference in SoapClient
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 8.0.2 - Upgrade
Upgrade
alpine/php7to a version that resolves this vulnerability.Fixed in 7.3.27-r0 - Upgrade
Upgrade
alpine/php7to a version that resolves this vulnerability.Fixed in 7.4.15-r0 - Upgrade
Upgrade
alpine/php8to a version that resolves this vulnerability.Fixed in 8.0.2-r0 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.3.27 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 8.0.2 - Upgrade
Upgrade
debian/php7.4to a version that resolves this vulnerability.Fixed in 7.4.15-1 - Upgrade
Upgrade
debian/php7.0to a version that resolves this vulnerability.Fixed in 7.0.33-0+deb9u11 - Upgrade
Upgrade
debian/php7.3to a version that resolves this vulnerability.Fixed in 7.3.27-1~deb10u1 - Upgrade
Upgrade
debian/php8.0to a version that resolves this vulnerability.Fixed in 8.0.2-1 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.3.27 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.4.15
Event History
Frequently Asked Questions
What is the vulnerability ID for this bug?
The vulnerability ID for this bug is CVE-2021-21702.
What is the title of this bug?
The title of this bug is 'Fixed bug (Null Dereference in SoapClient). (CVE-2021-21702)'
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.
What is the severity of CVE-2021-21702?
The severity of CVE-2021-21702 is high with a CVSS score of 7.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.
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].