ADVISORIES

Vulnerability

CVE-2021-21705

In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can be accepted as valid. This can lead to the code incorrectly parsing the URL and potentially leading to other security implications - like contacting a wrong server or making a wrong access decision.

25 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALPINE-CVE-2021-21705

    In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can…

    CVE-2021-21705 Alpine Updated 3 November 2026
  • ALSA-2022:1935

    Moderate: php:7.4 security update

    CVE-2021-21703CVE-2021-21705 AlmaLinux Updated 29 October 2026
  • CNA-CVE-2021-21705

    Incorrect URL validation in FILTER_VALIDATE_URL

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

    In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can…

    CVE-2021-21705 Debian Updated 24 November 2026
  • DLA-2708-1

    php7.0 - security update

    CVE-2019-18218CVE-2020-7071CVE-2021-21702CVE-2021-21704 Debian Updated 20 November 2026
  • DSA-4935-1

    php7.3 - security update

    CVE-2021-21704CVE-2021-21705 Debian Updated 20 November 2026
  • ELSA-2022-1935

    ELSA-2022-1935: php:7.4 security update (MODERATE)

    Moderate CVE-2021-21703CVE-2021-21705 Oracle Linux Updated 17 May 2022
  • OESA-2021-1389

    php security update

    Medium CVE-2021-21704CVE-2021-21705 openEuler Updated 18 August 2026
  • RHSA-2021:2992

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

    CVE-2020-7068CVE-2020-7069CVE-2020-7070CVE-2020-7071 Red Hat Updated 13 November 2026
  • RHSA-2022:1935

    Red Hat Security Advisory: php:7.4 security update

    CVE-2021-21703CVE-2021-21705 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2021-21705

    php: SSRF bypass in FILTER_VALIDATE_URL

    Moderate CVE-2021-21705 Red Hat Updated 8 November 2026
  • RLSA-2022:1935

    Moderate: php:7.4 security update

    CVE-2021-21703CVE-2021-21705 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2021:2564-1

    Security update for php72

    CVE-2021-21705 SUSE Updated 4 February 2026
  • SUSE-SU-2021:2636-1

    Security update for php74

    CVE-2021-21704CVE-2021-21705 SUSE Updated 4 February 2026
  • SUSE-SU-2021:2637-1

    Security update for php7

    CVE-2021-21704CVE-2021-21705 SUSE 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
  • SUSEVEX-CVE-2021-21705

    In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can…

    Moderate CVE-2021-21705 SUSE Updated 13 September 2026
  • UBUNTU-CVE-2021-21705

    In PHP versions 7.3.x below 7.3.29, 7.4.x below 7.4.21 and 8.0.x below 8.0.8, when using URL validation functionality via filter_var() function with FILTER_VALIDATE_URL parameter, an URL with invalid password field can…

    CVE-2021-21705 Ubuntu Updated 22 April 2026
  • USN-5006-1

    php7.2, php7.4 vulnerabilities

    CVE-2020-7068CVE-2020-7071CVE-2021-21702CVE-2021-21704 Ubuntu Updated 22 April 2026
  • USN-5006-2

    php5, php7.0 vulnerabilities

    CVE-2020-7068CVE-2020-7071CVE-2021-21702CVE-2021-21704 Ubuntu Updated 29 June 2026
  • openSUSE-SU-2021:1130-1

    Security update for php7

    CVE-2021-21704CVE-2021-21705 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:2575-1

    Security update for php7

    CVE-2021-21705 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:2637-1

    Security update for php7

    CVE-2021-21704CVE-2021-21705 openSUSE Updated 4 February 2026

References