CVE-2021-21708
CVE-2021-21708 · UAF due to php_filter_float() failing
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.2 · High · EPSS 3.0% · Fix available
- Published
- Updated
Affected products and versions
php
- Versions
- ≥ 7.4.x, < 7.4.28: Affected (custom)
- ≥ 8.0.X, < 8.0.16: Affected (custom)
- ≥ 8.1.X, < 8.1.3: Affected (custom)
Update to 7.4.28; Update to 8.0.16; Update to 8.1.3
php7.4 Debian:11
- Versions
- 7.4.21-1+deb11u1
- 7.4.25-1+deb11u1
- 7.4.26-1
- Affected ranges
- ECOSYSTEM: < 7.4.28-1+deb11u1
Update to 7.4.28-1+deb11u1
php7.4 Ubuntu:20.04:LTS
- Versions
- 7.4.3-4build1
- 7.4.3-4build2
- 7.4.3-4ubuntu1
- 7.4.3-4ubuntu1.1
- 7.4.3-4ubuntu2.2
- 7.4.3-4ubuntu2.4
- 7.4.3-4ubuntu2.5
- 7.4.3-4ubuntu2.6
- 7.4.3-4ubuntu2.7
- 7.4.3-4ubuntu2.8
- Affected ranges
- ECOSYSTEM: < 7.4.3-4ubuntu2.9
Update to 7.4.3-4ubuntu2.9
php8.1 Ubuntu:22.04:LTS
- Versions
- 8.1.0~rc4-1ubuntu2
- 8.1.0-1
- Affected ranges
- ECOSYSTEM: < 8.1.2-1ubuntu1
Update to 8.1.2-1ubuntu1