cve.bz

CVE-2021-21702 NULL Pointer Dereference

7.5 highEPSS 3.2%Fix available

High (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21702 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21702?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21702?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21702 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 7.3.x before 7.3.27
PHP Group PHPfrom 7.4.x before 7.4.15
PHP Group PHPfrom 8.0.X before 8.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9php7.07.0.33-0+deb9u11DLA-2708-1
Debian10php7.37.3.27-1~deb10u1DSA-4856-1
Debian11php7.47.4.15-1DEBIAN-CVE-2021-21702
Ubuntu18.04:LTSphp7.27.2.24-0ubuntu0.18.04.8UBUNTU-CVE-2021-21702 USN-5006-1
Ubuntu20.04:LTSphp7.47.4.3-4ubuntu2.5UBUNTU-CVE-2021-21702 USN-5006-1
UbuntuPro:14.04:LTSphp55.5.9+dfsg-1ubuntu4.29+esm14UBUNTU-CVE-2021-21702 USN-5006-2
UbuntuPro:16.04:LTSphp7.07.0.33-0ubuntu0.16.04.16+esm1UBUNTU-CVE-2021-21702 USN-5006-2
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 51 more0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.12-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource0:2.9.5-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatenterprise_linux:8::appstreamphp-pecl-zip, php-pecl-zip-debuginfo, php-pecl-zip-debugsource0:1.18.2-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hatrhel_software_collections:3::el7rh-php73-php, rh-php73-php-gd, rh-php73-php-cli and 27 more0:7.3.29-1.el7RHSA-2021:2992
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morephp77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morephp77.2.5-4.73.1SUSE-SU-2021:0584-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morephp77.4.33-150200.3.46.2SUSE-SU-2022:4069-1
SUSELinux Enterprise Module for Package Hub 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP2php77.4.6-3.17.1SUSE-SU-2021:0494-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP5php727.2.5-1.60.1SUSE-SU-2021:0498-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP5php747.4.33-1.47.2SUSE-SU-2022:4068-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP5php747.4.6-1.19.1SUSE-SU-2021:0522-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSphp535.3.17-112.99.2SUSE-SU-2021:14668-1
openSUSELeap 15.2php7, php7-test7.4.6-lp152.2.15.1openSUSE-SU-2021:0305-1
openSUSELeap 15.3php7, php7-test7.4.33-150200.3.46.2SUSE-SU-2022:4069-1
openSUSELeap 15.4php77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
openSUSELeap 15.4php77.4.33-150200.3.46.2SUSE-SU-2022:4069-1
openSUSETumbleweedphp77.4.24-2.1openSUSE-SU-2024:11569-1
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux8libzip, libzip-devel, libzip-tools1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux8php, php-gd, php-cli and 24 more7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux8php-pear1:1.10.12-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.3.0+2009+b272fdefALSA-2021:4213
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.4.0+2229+b272fdefALSA-2021:4213
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux8php-pecl-xdebug2.9.5-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux8php-pecl-zip1.18.2-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
Rocky Linux8libzip0:1.6.1-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux8libzip0:1.6.1-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux8php0:7.4.19-1.module+el8.5.0+696+61e7c9baRLSA-2021:4213
Rocky Linux8php-pear1:1.10.12-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux8php-pear1:1.10.12-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux8php-pecl-apcu0:5.1.18-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux8php-pecl-apcu0:5.1.18-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux8php-pecl-rrd0:2.0.1-1.module+el8.4.0+414+2e7afcddRLSA-2021:4213
Rocky Linux8php-pecl-xdebug0:2.9.5-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux8php-pecl-zip0:1.18.2-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux8php-pecl-zip0:1.18.2-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Alpinev3.12php77.3.27-r0ALPINE-CVE-2021-21702
Alpinev3.13, v3.14, v3.15php77.4.15-r0ALPINE-CVE-2021-21702
Alpinev3.13, v3.14, v3.15 and 1 morephp88.0.2-r0ALPINE-CVE-2021-21702

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been rated as having a security impact of Low, because it requires a malicious or compromised server in order to be exploited, and it only affects the SOAP client.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8php:7.4-8050020210526053050.3e6e7e84Fixed 2021-11-09RHSA-2021:4213
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php73-php-0:7.3.29-1.el7Fixed 2021-08-03RHSA-2021:2992
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-php73-php-0:7.3.29-1.el7Fixed 2021-08-03RHSA-2021:2992
Red Hat Enterprise Linux 5phpOut of support scope
Red Hat Enterprise Linux 5php53Out of support scope
Red Hat Enterprise Linux 6phpOut of support scope
Red Hat Enterprise Linux 7phpOut of support scope
Red Hat Enterprise Linux 8php:7.2/phpFix deferred
Red Hat Enterprise Linux 8php:7.3/phpFix deferred
Red Hat Enterprise Linux 9phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21702.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON