CVEvulnerability
CVE-2021-21708
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-02-27
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.2 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 6.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-416
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.
Affected configurations
• php php (>= 7.4.0 < 7.4.28)
• php php (>= 8.0.0 < 8.0.16)
• php php (>= 8.1.0 < 8.1.3)
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- 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