ADVISORIES

Vulnerability

CVE-2021-21707

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.

29 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALPINE-CVE-2021-21707

    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…

    CVE-2021-21707 Alpine Updated 3 November 2026
  • ALSA-2022:7628

    Moderate: php:7.4 security, bug fix, and enhancement update

    CVE-2021-21707CVE-2021-21708CVE-2021-32610 AlmaLinux Updated 29 October 2026
  • CNA-CVE-2021-21707

    Special characters break path parsing in XML functions

    CVE-2021-21707 PHP Updated 17 September 2024
  • DEBIAN-CVE-2021-21707

    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…

    CVE-2021-21707 Debian Updated 24 November 2026
  • DLA-3243-1

    php7.3 - security update

    CVE-2021-21707CVE-2022-31625CVE-2022-31626CVE-2022-31628 Debian Updated 20 November 2026
  • DSA-5082-1

    php7.4 - security update

    CVE-2021-21707CVE-2021-21708 Debian Updated 20 November 2026
  • ELSA-2022-7628

    ELSA-2022-7628: php:7.4 security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2021-21707CVE-2021-21708CVE-2021-32610 Oracle Linux Updated 15 November 2022
  • OESA-2021-1455

    php security update

    Medium CVE-2021-21707 openEuler Updated 18 August 2026
  • RHSA-2022:5491

    Red Hat Security Advisory: rh-php73-php security and bug fix update

    CVE-2021-21703CVE-2021-21707CVE-2022-31625CVE-2022-31626 Red Hat Updated 13 November 2026
  • RHSA-2022:7628

    Red Hat Security Advisory: php:7.4 security, bug fix, and enhancement update

    CVE-2021-21707CVE-2021-21708CVE-2021-32610 Red Hat Updated 7 August 2026
  • RHVEX-CVE-2021-21707

    php: Special character breaks path in xml parsing

    Moderate CVE-2021-21707 Red Hat Updated 7 November 2026
  • RLSA-2022:7628

    Moderate: php:7.4 security, bug fix, and enhancement update

    CVE-2021-21707CVE-2021-21708CVE-2021-32610 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2021:3927-1

    Security update for php74

    CVE-2021-21707 SUSE Updated 4 February 2026
  • SUSE-SU-2021:3943-1

    Recommended update for php7

    CVE-2021-21703CVE-2021-21707 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0577-1

    Security update for php72

    CVE-2015-9253CVE-2017-8923CVE-2021-21707 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0679-1

    Security update for php7

    CVE-2015-9253CVE-2017-8923CVE-2021-21703CVE-2021-21707 SUSE Updated 4 February 2026
  • SUSE-SU-2022:2292-1

    Security update for php7

    CVE-2021-21707CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:2303-1

    Security update for php8

    CVE-2021-21707CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:3997-1

    Security update for php7

    CVE-2021-21707CVE-2021-21708CVE-2022-31625CVE-2022-31626 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:4067-1

    Security update for php7

    Known exploited CVE-2015-9253CVE-2017-8923CVE-2017-9120CVE-2018-1000222 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:4068-1

    Security update for php74

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSE Updated 4 February 2026
  • SUSE-SU-2022:4069-1

    Security update for php7

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-21707

    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…

    CVE-2021-21707 Ubuntu Updated 21 October 2026
  • USN-5300-1

    php7.0 vulnerabilities

    CVE-2015-9253CVE-2017-8923CVE-2017-9118CVE-2017-9119 Ubuntu Updated 25 June 2026
  • USN-5300-2

    php7.2, php7.4 vulnerabilities

    CVE-2017-8923CVE-2017-9118CVE-2017-9119CVE-2017-9120 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2021:1570-1

    Recommended update for php7

    CVE-2021-21703CVE-2021-21707 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:3943-1

    Recommended update for php7

    CVE-2021-21703CVE-2021-21707 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11638-1

    php8-8.0.13-1.1 on GA media

    CVE-2021-21707 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11640-1

    php7-7.4.26-1.1 on GA media

    CVE-2021-21707 openSUSE Updated 4 February 2026

References