ADVISORIES

Vulnerability

CVE-2021-21708

In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits.

29 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALPINE-CVE-2021-21708

    In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use…

    CVE-2021-21708 Alpine Updated 3 November 2026
  • ALSA-2022:7624

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

    CVE-2021-21708CVE-2022-31625 AlmaLinux Updated 5 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
  • ALSA-2022:8197

    Moderate: php security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 AlmaLinux Updated 29 October 2026
  • CNA-CVE-2021-21708

    UAF due to php_filter_float() failing

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

    In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use…

    CVE-2021-21708 Debian Updated 24 November 2026
  • DSA-5082-1

    php7.4 - security update

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

    ELSA-2022-7624: php:8.0 security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2021-21708CVE-2022-31625 Oracle Linux Updated 15 November 2022
  • 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
  • ELSA-2022-8197

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

    Moderate CVE-2021-21708CVE-2022-31625 Oracle Linux Updated 22 November 2022
  • OESA-2022-1581

    php security update

    Critical CVE-2021-21708 openEuler Updated 18 August 2026
  • RHSA-2022:7624

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

    CVE-2021-21708CVE-2022-31625 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
  • RHSA-2022:8197

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

    CVE-2021-21708CVE-2022-31625 Red Hat Updated 13 November 2026
  • RHSA-2025:3016

    Red Hat Security Advisory: php:7.4 security update

    CVE-2021-21708 Red Hat Updated 7 August 2026
  • RHSA-2025:3076

    Red Hat Security Advisory: php:7.4 security update

    CVE-2021-21708 Red Hat Updated 7 August 2026
  • RLSA-2022:7624

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

    CVE-2021-21708CVE-2022-31625 Rocky Linux Updated 4 February 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
  • RLSA-2022:8197

    Moderate: php security, bug fix, and enhancement update

    CVE-2021-21708CVE-2022-31625 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2022:0654-1

    Security update for php74

    CVE-2021-21708 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0847-1

    Security update for php7

    CVE-2021-21708 SUSE 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: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-21708

    In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use…

    CVE-2021-21708 Ubuntu Updated 22 April 2026
  • USN-5303-1

    php7.4, php8.0 vulnerability

    CVE-2021-21708 Ubuntu Updated 22 April 2026
  • openSUSE-SU-2022:0847-1

    Security update for php7

    CVE-2021-21708 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11854-1

    php8-8.1.3-1.1 on GA media

    CVE-2021-21708 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11861-1

    php7-7.4.28-1.1 on GA media

    CVE-2021-21708 openSUSE Updated 4 February 2026

References