CVE-2021-21708

UAF due to php_filter_float() failing

State
Published
Severity
8.2 High
Published
Feb 27, 2022
Updated
Sep 17, 2024
Reserved
Jan 4, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:Lphp

Weaknesses

Affected Products

ProductVersions
PHPPHP Group
  • 7.4.x to before 7.4.28Affected
  • 8.0.X to before 8.0.16Affected
  • 8.1.X to before 8.1.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.