CVE-2021-21708

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
Link Resource
https://bugs.php.net/bug.php?id=81708 Exploit Issue Tracking Patch Vendor Advisory
https://security.gentoo.org/glsa/202209-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20220325-0004/ Third Party Advisory
https://bugs.php.net/bug.php?id=81708 Exploit Issue Tracking Patch Vendor Advisory
https://security.gentoo.org/glsa/202209-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20220325-0004/ Third Party Advisory
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

History

21 Nov 2024, 05:48

Type Values Removed Values Added
References () https://bugs.php.net/bug.php?id=81708 - Exploit, Issue Tracking, Patch, Vendor Advisory () https://bugs.php.net/bug.php?id=81708 - Exploit, Issue Tracking, Patch, Vendor Advisory
References () https://security.gentoo.org/glsa/202209-20 - Third Party Advisory () https://security.gentoo.org/glsa/202209-20 - Third Party Advisory
References () https://security.netapp.com/advisory/ntap-20220325-0004/ - Third Party Advisory () https://security.netapp.com/advisory/ntap-20220325-0004/ - Third Party Advisory
CVSS v2 : 6.8
v3 : 9.8
v2 : 6.8
v3 : 8.2

Information

Published : 2022-02-27 08:15

Updated : 2024-11-21 05:48


NVD link : CVE-2021-21708

Mitre link : CVE-2021-21708

CVE.ORG link : CVE-2021-21708


JSON object : View

Products Affected

php

  • php
CWE
CWE-416

Use After Free