{"id":"BIT-php-min-2021-21708","summary":"UAF due to php_filter_float() failing","details":"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.","aliases":["BIT-libphp-2021-21708","BIT-php-2021-21708","CVE-2021-21708"],"modified":"2025-08-11T14:44:46.736002Z","published":"2025-01-14T19:22:11.505Z","database_specific":{"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"],"severity":"Critical"},"references":[{"type":"WEB","url":"https://bugs.php.net/bug.php?id=81708"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202209-20"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220325-0004/"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21708"}],"affected":[{"package":{"name":"php-min","ecosystem":"Bitnami","purl":"pkg:bitnami/php-min"},"ranges":[{"type":"SEMVER","events":[{"introduced":"7.4.0"},{"fixed":"7.4.28"},{"introduced":"8.0.0"},{"fixed":"8.0.16"},{"introduced":"8.1.0"},{"fixed":"8.1.3"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/php-min/BIT-php-min-2021-21708.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.7.3"}