CVE-2021-21708

HIGH

PHP 7.4.0-7.4.27 - Use-After-Free via FILTER_VALIDATE_FLOAT with Min/Max Limits

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Exploit, Issue Tracking, Patch, Vendor Advisory x_refsource_misc
https://bugs.php.net/bug.php?id=81708
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20220325-0004/
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202209-20

Scores

CVSS v3 8.2
EPSS 0.0022
EPSS Percentile 44.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Details

CWE
CWE-416
Status published
Products (1)
php/php 7.4.0 - 7.4.28
Published Feb 27, 2022
Tracked Since Feb 18, 2026