CVE-2021-21708Php
Critical 9.8 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.0% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Feb 27, 2022
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-416
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 7.4.0 < 7.4.28 |
| php | php | ≥ 8.0.0 < 8.0.16 |
| php | php | ≥ 8.1.0 < 8.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.php.net Exploit Issue Tracking Patch
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory