PHP up to 7.3.32/7.4.25/8.0.12 XML Parser simplexml_load_file null termination
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 0.00 |
Summary
A vulnerability described as problematic has been identified in PHP up to 7.3.32/7.4.25/8.0.12. This issue affects the function simplexml_load_file of the component XML Parser. The manipulation results in null termination.
This vulnerability is known as CVE-2021-21707. It is possible to launch the attack remotely. No exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability classified as problematic has been found in PHP up to 7.3.32/7.4.25/8.0.12 (Programming Language Software). Affected is the function simplexml_load_file of the component XML Parser. The manipulation with an unknown input leads to a null termination vulnerability. CWE is classifying the issue as CWE-170. The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator. This is going to have an impact on confidentiality.
The weakness was published 11/29/2021 as 79971. The advisory is available at bugs.php.net. This vulnerability is traded as CVE-2021-21707 since 01/04/2021. Technical details are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 236672 (Alibaba Cloud Linux 3 : 0018: php:7.4 (ALINUX3-SA-2023:0018)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 7.3.33, 7.4.26 or 8.0.13 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (236672). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Name
Version
- 7.3.0
- 7.3.1
- 7.3.2
- 7.3.3
- 7.3.4
- 7.3.5
- 7.3.6
- 7.3.7
- 7.3.8
- 7.3.9
- 7.3.10
- 7.3.11
- 7.3.12
- 7.3.13
- 7.3.14
- 7.3.15
- 7.3.16
- 7.3.17
- 7.3.18
- 7.3.19
- 7.3.20
- 7.3.21
- 7.3.22
- 7.3.23
- 7.3.24
- 7.3.25
- 7.3.26
- 7.3.27
- 7.3.28
- 7.3.29
- 7.3.30
- 7.3.31
- 7.3.32
- 7.4.0
- 7.4.1
- 7.4.2
- 7.4.3
- 7.4.4
- 7.4.5
- 7.4.6
- 7.4.7
- 7.4.8
- 7.4.9
- 7.4.10
- 7.4.11
- 7.4.12
- 7.4.13
- 7.4.14
- 7.4.15
- 7.4.16
- 7.4.17
- 7.4.18
- 7.4.19
- 7.4.20
- 7.4.21
- 7.4.22
- 7.4.23
- 7.4.24
- 7.4.25
- 8.0.0
- 8.0.1
- 8.0.2
- 8.0.3
- 8.0.4
- 8.0.5
- 8.0.6
- 8.0.7
- 8.0.8
- 8.0.9
- 8.0.10
- 8.0.11
- 8.0.12
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 5.2
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 5.3
CNA Vector (PHP Group): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Null terminationCWE: CWE-170 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 236672
Nessus Name: Alibaba Cloud Linux 3 : 0018: php:7.4 (ALINUX3-SA-2023:0018)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 7.3.33/7.4.26/8.0.13
Timeline
01/04/2021 🔍11/29/2021 🔍
11/29/2021 🔍
05/18/2025 🔍
Sources
Product: php.orgAdvisory: 79971
Status: Confirmed
CVE: CVE-2021-21707 (🔍)
GCVE (CVE): GCVE-0-2021-21707
GCVE (VulDB): GCVE-100-187290
Entry
Created: 11/29/2021 13:20Updated: 05/18/2025 17:59
Changes: 11/29/2021 13:20 (50), 12/02/2021 13:31 (1), 12/02/2021 13:37 (7), 05/18/2025 17:59 (16)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.