Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 7.4.0, < 7.4.28 |
Related Weaknesses (CWE)
References
- https://bugs.php.net/bug.php?id=81708ExploitIssue TrackingPatch
- https://security.gentoo.org/glsa/202209-20Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220325-0004/Third Party Advisory
- https://bugs.php.net/bug.php?id=81708ExploitIssue TrackingPatch
- https://security.gentoo.org/glsa/202209-20Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220325-0004/Third Party Advisory
FAQ
What is CVE-2021-21708?
CVE-2021-21708 is a vulnerability with a CVSS score of 8.2 (HIGH). 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 possibi...
How severe is CVE-2021-21708?
CVE-2021-21708 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-21708?
Check the references section above for vendor advisories and patch information. Affected products include: Php Php.