CVE-2021-21707

Updated: 2025-08-20 01:55:54.889814

Description:

In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x MEDIUM 5.0
CVSS Version 3.x MEDIUM 5.3

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

CentOS 6 ELS php 5.3.3 5.3 MEDIUM Ignored 2022-07-18 11:44:31 Ignored due to low severity
CentOS 7 ELS php 5.4.16 5.3 MEDIUM Ignored 2024-01-21 08:36:31 Ignored due to low severity
CentOS 8.4 ELS php 7.4.6 5.3 MEDIUM Released CLSA-2022:1668467919 2022-11-14 20:31:11
CentOS 8.5 ELS php 7.4.19 5.3 MEDIUM Released CLSA-2022:1668468696 2022-11-14 20:30:53
CloudLinux 6 ELS php 5.3.3 5.3 MEDIUM Ignored 2022-07-18 11:44:31 Ignored due to low severity
Debian 10 ELS php 7.3 5.3 MEDIUM Ignored 2025-10-11 00:18:44 Ignored due to low severity
Oracle Linux 6 ELS php 5.3.3 5.3 MEDIUM Ignored 2022-07-18 11:44:31 Ignored due to low severity
Ubuntu 16.04 ELS php 7.0.33 5.3 MEDIUM Released CLSA-2022:1646085834 2022-04-20 16:02:02
Ubuntu 18.04 ELS php 7.2.24-0 5.3 MEDIUM Already Fixed 2023-07-04 17:06:50