Vulnerability Name:

CVE-2021-21707 (CCN-214167)

Assigned:2021-11-15
Published:2021-11-15
Updated:2023-02-16
Summary: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.
CVSS v3 Severity:5.3 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
4.6 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
4.6 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
5.3 Medium (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
4.6 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
Vulnerability Type:CWE-20
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2021-21707

Source: CCN
Type: PHP Sec Bug #79971
special character is breaking the path in xml function

Source: security@php.net
Type: Exploit, Issue Tracking, Patch, Release Notes, Vendor Advisory
security@php.net

Source: XF
Type: UNKNOWN
php-cve202121707-info-disc(214167)

Source: security@php.net
Type: Issue Tracking, Mailing List
security@php.net

Source: security@php.net
Type: Third Party Advisory
security@php.net

Source: security@php.net
Type: Third Party Advisory
security@php.net

Source: CCN
Type: IBM Security Bulletin 6845928 (Spectrum Sentinel Anomaly Scan Engine)
Vulnerabilities in PHP may affect IBM Spectrum Sentinel Anomaly Scan Engine (CVE-2021-21703, CVE-2021-21708, CVE-2021-21707, CVE-2022-31629, CVE-2022-31628)

Source: CCN
Type: PHP Web site
PHP

Source: security@php.net
Type: Patch, Release Notes, Third Party Advisory
security@php.net

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2021-21707

Vulnerable Configuration:Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*
  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:php:php:7.4.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:7.3.0:-:*:*:*:*:*:*
  • OR cpe:/a:php:php:8.0.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:8169
    P
    Security update for SUSE Manager Client Tools (Important)
    2023-06-21
    oval:org.opensuse.security:def:8189
    P
    Security update for google-cloud-sap-agent (Important) (in QA)
    2023-06-20
    oval:org.opensuse.security:def:7454
    P
    btrfsmaintenance-0.4.2-3.3.1 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:7499
    P
    fuse-2.9.7-3.3.1 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:8075
    P
    apache2-mod_php7-7.4.33-150400.4.22.1 on GA media (Moderate)
    2023-06-12
    oval:com.redhat.rhsa:def:20227628
    P
    RHSA-2022:7628: php:7.4 security, bug fix, and enhancement update (Moderate)
    2022-11-08
    oval:org.opensuse.security:def:547
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:95347
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3717
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:555
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:95369
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3739
    P
    Security update for php7 (Important)
    2022-07-06
    oval:org.opensuse.security:def:95409
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:3776
    P
    Security update for php8 (Important)
    2022-07-06
    oval:org.opensuse.security:def:102174
    P
    Security update for SUSE Manager Server 4.2 (Moderate)
    2022-04-25
    oval:org.opensuse.security:def:5353
    P
    Security update for php72 (Moderate)
    2022-02-25
    oval:org.opensuse.security:def:113135
    P
    php7-7.4.26-1.1 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:113139
    P
    php8-8.0.13-1.1 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:40761
    P
    Security update for php53 (Moderate)
    2021-12-22
    oval:org.opensuse.security:def:45191
    P
    Security update for php53 (Moderate)
    2021-12-22
    oval:org.opensuse.security:def:111162
    P
    Recommended update for php7 (Moderate)
    2021-12-10
    oval:org.opensuse.security:def:67345
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:102078
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:69278
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:6256
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:108840
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:68543
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:20987
    P
    Security update for php74 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:111820
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:102272
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:95461
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:49458
    P
    Security update for php74 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:118343
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:109258
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:102592
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:68588
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:76070
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:26180
    P
    Security update for php74 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:1498
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:95879
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:67002
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:118586
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:109490
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:102824
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:69258
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:76413
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:5913
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:5167
    P
    Security update for php74 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:1712
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    oval:org.opensuse.security:def:96134
    P
    Recommended update for php7 (Moderate)
    2021-12-06
    BACK
    php php 7.4.0
    php php 7.3.0
    php php 8.0.0 -