VULNERABILITY INTELLIGENCE
CVE-2021-21708
CVSS score8.2 HIGH
EPSS probability3.00%
CISA KEVNot currently listed
Published2022-02-27
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
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.
Weakness classification
- security@php.net: CWE-416
- nvd@nist.gov: CWE-416
Primary references
- security@php.net — Exploit, Issue Tracking, Patch, Vendor Advisory
- security@php.net — Third Party Advisory
- security@php.net — Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Exploit, Issue Tracking, Patch, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Third Party Advisory