CVE-2021-21708
No exploitation reported by the sources we read.
- Published2022-02-27
- Fixed in8.1.3 · 8.0.16 · 7.4.28
- WeaknessCWE-416
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-02-2708:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.1 | ≥ 8.1.0, < 8.1.3 | 8.1.3 | NVD · OSV |
| 8.0 | ≥ 8.0.0, < 8.0.16 | 8.0.16 | NVD · OSV |
| 7.4 | ≥ 7.4.0, < 7.4.28 | 7.4.28 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libzipTuxCare:CentOS:8.5all versions · fixed in 1.6.1-1.module_el8.5.0+2017+cc873159and 2 other packages
- libzipRocky Linux:8all versions · fixed in 0:1.6.1-1.module+el8.4.0+415+e936cba3
- libzipRocky Linux:8all versions · fixed in 0:1.6.1-1.module+el8.6.0+789+2130c178
- libzipRocky Linux:8all versions · fixed in 0:1.7.3-1.module+el8.6.0+790+fc63e43f
- libzipRed Hat:rhel_tus:8.6::appstreamall versions · fixed in 0:1.6.1-1.module+el8.3.0+6678+b09f589eand 5 other packages
- libzipRed Hat:rhel_tus:8.4::appstreamall versions · fixed in 0:1.6.1-1.module+el8.3.0+6678+b09f589eand 5 other packages
- libzipRed Hat:rhel_e4s:8.6::appstreamall versions · fixed in 0:1.6.1-1.module+el8.3.0+6678+b09f589eand 5 other packages
- libzipRed Hat:rhel_e4s:8.4::appstreamall versions · fixed in 0:1.6.1-1.module+el8.3.0+6678+b09f589eand 5 other packages
144 more package ranges on OSV.dev
Vendor advisories
php: Use after free due to php_filter_float() failing for ints
Red Hat Security Advisory: php:7.4 security update
Red Hat Security Advisory: php:7.4 security update
Siemens RUGGEDCOM APE1808
RUGGEDCOM APE1808
SSA-455250: Multiple Vulnerabilities in Palo Alto Networks Virtual NGFW on RUGGEDCOM APE1808 Devices Before V11.1.2-h3
RUGGEDCOM APE1808
Festo Didactic SE MES PC
Festo Didactic SE MES PC shipped with Windows 10
3 more advisories
Fix
- Update PHP to 8.1.3 · 8.0.16 · 7.4.28
- Vendor fix Red Hat Product Security RHSA-2025:3076 · 319 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix CISA ICSA-24-102-04 · 1 productUpgrade Palo Alto Networks Virtual NGFW V11.1.2-h3. Contact customer support to receive patch and update information
- Vendor fix Siemens ProductCERT SSA-455250 · 1 productUpgrade Palo Alto Networks Virtual NGFW V11.1.2-h3. Contact customer support to receive patch and update information
- Vendor fix CISA ICSA-26-027-02 · 1 productFesto Didactic has released Factory Control Panel as a replacement for XAMPP on its MES PCs. Contact technical support at services.didactic@festo.com to obtain the current version of Factory Control Panel which includes fixes for these vulnerabilities.
- Vendor fix Red Hat Product Security RHSA-2022:8197 · 201 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the updated packages, the httpd daemon must be restarted for the update to take effect.
Advisories and patches
- bugs.php.netPatch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.18.2known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.06.8read 2026-10-23
- CNAweakness (CWE)CWE-416known since 2026-10-23
- NVDweakness (CWE)CWE-416read 2026-10-23
- FIRST EPSSEPSS score3.0 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- BIT-libphp-2021-21708same flawBitnami · Apache-2.0
- BIT-php-2021-21708same flawBitnami · Apache-2.0
- BIT-php-min-2021-21708same flawBitnami · Apache-2.0
- EUVD-2021-8880same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-g9qg-rg7j-whhxsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:7624advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:7628advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:8197advisory covering several CVEsAlmaLinux · MIT
- DSA-5082-1advisory covering several CVEsDebian · LicenseRef-unstated
- OESA-2022-1581advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2022:0847-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11854-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11861-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:7624advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7628advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:8197advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:3016advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:3076advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:7624advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:7628advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:8197advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:0654-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0847-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3997-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4068-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4069-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5303-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2022-02-27
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-g9qg-rg7j-whhx
Frequently asked questions
What is CVE-2021-21708?
Is CVE-2021-21708 actively exploited?
What is the CVSS score for CVE-2021-21708?
Running PHP? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-g9qg-rg7j-whhx
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)