{"id":"CVE-2021-21708","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","BIT-php-min-2021-21708"],"modified":"2026-03-19T04:23:35.729061Z","published":"2022-02-27T08:15:06.817Z","related":["ALSA-2022:7624","ALSA-2022:7628","ALSA-2022:8197","SUSE-SU-2022:0654-1","SUSE-SU-2022:0847-1","SUSE-SU-2022:3997-1","SUSE-SU-2022:4068-1","SUSE-SU-2022:4069-1","openSUSE-SU-2022:0847-1","openSUSE-SU-2024:11854-1","openSUSE-SU-2024:11861-1"],"references":[{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-20"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220325-0004/"},{"type":"FIX","url":"https://bugs.php.net/bug.php?id=81708"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"3c7824e16ec4c3cee417262445d2c2b66531c10f"},{"fixed":"33fb9dcbc31840296ac495c74532f71a463380cd"},{"introduced":"5dc92c2117cafc61daaaaa240fd46c3ac33872a4"},{"fixed":"4f4e4354154778edc85ee882d81b95611b12d04d"},{"introduced":"381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"},{"fixed":"9bc17e44be7577ad8dcf325e9a8e104b58e098a5"}],"database_specific":{"versions":[{"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://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21708.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}