Skip to content
OpenAdvisories
High · 8.2 CVE-2021-21708 EUVD-2021-8880GHSA-g9qg-rg7j-whhx

UAF due to php_filter_float() failing

Published Feb 27, 2022 · Updated Sep 17, 2024 · Assigned by php

Description

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.

Affected products

VendorProductAffectedFixed
PHP Group PHP 7.4.x – < 7.4.28, 8.0.X – < 8.0.16, 8.1.X – < 8.1.3 7.4.28

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 php7.4 7.4.28-1+deb11u1 DSA-5082-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu1 —
Ubuntu 20.04 LTS php7.4 7.4.3-4ubuntu2.9 USN-5303-1
ReleasePackageFixed inAdvisory
RHEL 9 php +23 8.0.20-3.el9 RHSA-2022:8197
RHEL 8 apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2022:7628, RHSA-2022:7624
RHEL 8 libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2022:7628, RHSA-2022:7624
RHEL 8 php +25 7.4.30-1.module+el8.7.0+15886+8e29b882 RHSA-2022:7628, RHSA-2022:7624
RHEL 8 php-pear 1:1.10.13-1.module+el8.6.0+13671+84712317 RHSA-2022:7628, RHSA-2022:7624
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2022:7628, RHSA-2022:7624
RHEL 8 php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2022:7628
RHEL 8 php-pecl-xdebug3 3.1.2-1.module+el8.6.0+13671+84712317 RHSA-2022:7624
RHEL 8 php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2022:7628, RHSA-2022:7624
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.6 TUS apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 TUS libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 TUS php +25 7.4.19-4.module+el8.6.0+22924+d3a53e75.1 RHSA-2025:3016
RHEL 8.6 TUS php-pear 1:1.10.13-1.module+el8.6.0+16577+0788886f RHSA-2025:3016
RHEL 8.6 TUS php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 TUS php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 TUS php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 E4S apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 E4S libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 E4S php +25 7.4.19-4.module+el8.6.0+22924+d3a53e75.1 RHSA-2025:3016
RHEL 8.6 E4S php-pear 1:1.10.13-1.module+el8.6.0+16577+0788886f RHSA-2025:3016
RHEL 8.6 E4S php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 E4S php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 E4S php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 AUS apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 AUS libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 AUS php +25 7.4.19-4.module+el8.6.0+22924+d3a53e75.1 RHSA-2025:3016
RHEL 8.6 AUS php-pear 1:1.10.13-1.module+el8.6.0+16577+0788886f RHSA-2025:3016
RHEL 8.6 AUS php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 AUS php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.6 AUS php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3016
RHEL 8.4 TUS apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 TUS libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 TUS php +25 7.4.6-5.module+el8.4.0+22918+4f86939b.1 RHSA-2025:3076
RHEL 8.4 TUS php-pear 1:1.10.13-1.module+el8.4.0+16578+ed65e99e RHSA-2025:3076
RHEL 8.4 TUS php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 TUS php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 TUS php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 E4S apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 E4S libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 E4S php +25 7.4.6-5.module+el8.4.0+22918+4f86939b.1 RHSA-2025:3076
RHEL 8.4 E4S php-pear 1:1.10.13-1.module+el8.4.0+16578+ed65e99e RHSA-2025:3076
RHEL 8.4 E4S php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 E4S php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 E4S php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 AUS apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 AUS libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 AUS php +25 7.4.6-5.module+el8.4.0+22918+4f86939b.1 RHSA-2025:3076
RHEL 8.4 AUS php-pear 1:1.10.13-1.module+el8.4.0+16578+ed65e99e RHSA-2025:3076
RHEL 8.4 AUS php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 AUS php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076
RHEL 8.4 AUS php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2025:3076

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 php +23 8.0.20-3.el9 ALSA-2022:8197
AlmaLinux 8 apcu-panel +2 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2022:7628, ALSA-2022:7624
AlmaLinux 8 libzip +2 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2022:7628, ALSA-2022:7624
AlmaLinux 8 php +25 7.4.30-1.module_el8.7.0+3286+227f3cf0 ALSA-2022:7628, ALSA-2022:7624
AlmaLinux 8 php-pear 1:1.10.13-1.module_el8.6.0+2739+efabdb8f ALSA-2022:7628, ALSA-2022:7624
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.6.0+2750+78feabcb ALSA-2022:7628, ALSA-2022:7624
AlmaLinux 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2022:7628
AlmaLinux 8 php-pecl-xdebug3 3.1.2-1.module_el8.6.0+2739+efabdb8f ALSA-2022:7624
AlmaLinux 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2022:7628, ALSA-2022:7624

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 php 8.0.20-3.el9 RLSA-2022:8197
Rocky Linux 8 libzip 1.6.1-1.module+el8.4.0+415+e936cba3 RLSA-2022:7628, RLSA-2022:7624
Rocky Linux 8 php 7.4.30-1.module+el8.7.0+1067+0a7071cc RLSA-2022:7628, RLSA-2022:7624
Rocky Linux 8 php-pear 1:1.10.13-1.module+el8.6.0+1006+0d5a469f RLSA-2022:7628, RLSA-2022:7624
Rocky Linux 8 php-pecl-apcu 5.1.18-1.module+el8.4.0+415+e936cba3 RLSA-2022:7628, RLSA-2022:7624
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.4.0+414+2e7afcdd RLSA-2022:7628, RLSA-2022:7624
Rocky Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.4.0+415+e936cba3 RLSA-2022:7628
Rocky Linux 8 php-pecl-xdebug3 3.1.2-1.module+el8.6.0+790+fc63e43f RLSA-2022:7624
Rocky Linux 8 php-pecl-zip 1.18.2-1.module+el8.4.0+415+e936cba3 RLSA-2022:7628, RLSA-2022:7624
ReleasePackageFixed inAdvisory
SLES 15 SP4 php7 +4 7.4.33-150400.4.13.1 SUSE-SU-2022:3997-1
SLES 15 SP3 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SLES 15 SP2 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SLES 12 SP5 php74 7.4.6-1.36.1 SUSE-SU-2022:4068-1, SUSE-SU-2022:0654-1
SLES 12 php74 7.4.6-1.36.1 SUSE-SU-2022:4068-1, SUSE-SU-2022:0654-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SLE HPC 15 SP2 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SUSE Manager Server 4.1 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SUSE Manager Retail Branch Server 4.1 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SUSE Manager Proxy 4.1 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
SUSE Enterprise Storage 7 php7 7.4.6-3.35.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:0847-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.28-1.1 openSUSE-SU-2024:11861-1
openSUSE Tumbleweed php8 8.1.3-1.1 openSUSE-SU-2024:11854-1
openSUSE Leap 15.4 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1, SUSE-SU-2022:3997-1
openSUSE Leap 15.4 php7-fpm +3 7.4.33-150400.4.13.1 SUSE-SU-2022:3997-1
openSUSE Leap 15.4 php7-test 7.4.33-150400.4.13.2 SUSE-SU-2022:3997-1
openSUSE Leap 15.3 php7 +1 7.4.6-3.35.1 openSUSE-SU-2022:0847-1, SUSE-SU-2022:4069-1
ReleasePackageFixed inAdvisory
Alpine v3.15 php7 7.4.28-r0 —
Alpine v3.15 php8 8.0.16-r0 —
Alpine v3.14 php7 7.4.32-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 php +23 8.0.20-3.el9 ELSA-2022-8197
Oracle Linux 8 apcu-panel +2 5.1.18-1.module+el8.3.0+7685+72d70b58 ELSA-2022-7628, ELSA-2022-7624
Oracle Linux 8 libzip +2 1.6.1-1.module+el8.3.0+7685+72d70b58 ELSA-2022-7628, ELSA-2022-7624
Oracle Linux 8 php +25 7.4.30-1.module+el8.7.0+20800+8e29b882 ELSA-2022-7628, ELSA-2022-7624
Oracle Linux 8 php-pear 1:1.10.13-1.module+el8.6.0+20568+84712317 ELSA-2022-7628, ELSA-2022-7624
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.3.0+7685+72d70b58 ELSA-2022-7628, ELSA-2022-7624
Oracle Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.3.0+7685+72d70b58 ELSA-2022-7628
Oracle Linux 8 php-pecl-xdebug3 3.1.2-1.module+el8.6.0+20568+84712317 ELSA-2022-7624
Oracle Linux 8 php-pecl-zip 1.18.2-1.module+el8.3.0+7685+72d70b58 ELSA-2022-7628, ELSA-2022-7624

Advisories 32

References