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
Configurations

Configuration 1 (hide)

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

History

07 Oct 2022, 14:31

Type Values Removed Values Added
References (GENTOO) https://security.gentoo.org/glsa/202209-20 - (GENTOO) https://security.gentoo.org/glsa/202209-20 - Third Party Advisory

29 Sep 2022, 17:15

Type Values Removed Values Added
References
  • (GENTOO) https://security.gentoo.org/glsa/202209-20 -

18 Apr 2022, 18:36

Type Values Removed Values Added
References (CONFIRM) https://security.netapp.com/advisory/ntap-20220325-0004/ - (CONFIRM) https://security.netapp.com/advisory/ntap-20220325-0004/ - Third Party Advisory

25 Mar 2022, 08:15

Type Values Removed Values Added
References
  • (CONFIRM) https://security.netapp.com/advisory/ntap-20220325-0004/ -

07 Mar 2022, 23:00

Type Values Removed Values Added
References (CONFIRM) https://bugs.php.net/bug.php?id=81708 - (CONFIRM) https://bugs.php.net/bug.php?id=81708 - Exploit, Issue Tracking, Patch, Vendor Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 6.8
v3 : 9.8
First Time Php
Php php
CPE cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
CWE CWE-416

27 Feb 2022, 09:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-02-27 08:15

Updated : 2023-12-10 14:22


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