{"api_version":"1","generated_at":"2026-04-22T23:09:17+00:00","cve":"CVE-2021-21708","urls":{"html":"https://cve.report/CVE-2021-21708","api":"https://cve.report/api/cve/CVE-2021-21708.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21708","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21708"},"summary":{"title":"CVE-2021-21708","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.","state":"PUBLIC","assigner":"security@php.net","published_at":"2022-02-27 08:15:00","updated_at":"2022-10-07 14:31:00"},"problem_types":["CWE-416"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202209-20","name":"GLSA-202209-20","refsource":"GENTOO","tags":[],"title":"PHP: Multiple Vulnerabilities (GLSA 202209-20) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20220325-0004/","name":"https://security.netapp.com/advisory/ntap-20220325-0004/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-21708 PHP Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.php.net/bug.php?id=81708","name":"N/A","refsource":"CONFIRM","tags":[],"title":"PHP :: Sec Bug #81708 :: UAF due to php_filter_float() failing for ints","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21708","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21708","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"dukk at softdev dot online","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"21708","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21708","qid":"150525","title":"PHP Input Validation Vulnerability (CVE-2021-21708)"},{"cve":"CVE-2021-21708","qid":"160244","title":"Oracle Enterprise Linux Security Update for php:7.4 (ELSA-2022-7628)"},{"cve":"CVE-2021-21708","qid":"160246","title":"Oracle Enterprise Linux Security Update for php:8.0 (ELSA-2022-7624)"},{"cve":"CVE-2021-21708","qid":"160289","title":"Oracle Enterprise Linux Security Update for Hypertext Preprocessor (PHP) (ELSA-2022-8197)"},{"cve":"CVE-2021-21708","qid":"179085","title":"Debian Security Update for php7.4 (DSA 5082-1)"},{"cve":"CVE-2021-21708","qid":"198680","title":"Ubuntu Security Notification for Hypertext Preprocessor (PHP) Vulnerability (USN-5303-1)"},{"cve":"CVE-2021-21708","qid":"240853","title":"Red Hat Update for php:8.0 security (RHSA-2022:7624)"},{"cve":"CVE-2021-21708","qid":"240855","title":"Red Hat Update for php:7.4 security (RHSA-2022:7628)"},{"cve":"CVE-2021-21708","qid":"240866","title":"Red Hat Update for Hypertext Preprocessor (PHP) security (RHSA-2022:8197)"},{"cve":"CVE-2021-21708","qid":"282423","title":"Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-1596a2dacb)"},{"cve":"CVE-2021-21708","qid":"282424","title":"Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-2e5e723298)"},{"cve":"CVE-2021-21708","qid":"354412","title":"Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALAS2022-2022-073"},{"cve":"CVE-2021-21708","qid":"354425","title":"Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALAS2022-2022-085"},{"cve":"CVE-2021-21708","qid":"356068","title":"Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.0-2023-007"},{"cve":"CVE-2021-21708","qid":"356085","title":"Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.0-2023-007"},{"cve":"CVE-2021-21708","qid":"377999","title":"Alibaba Cloud Linux Security Update for php:7.4 (ALINUX3-SA-2023:0018)"},{"cve":"CVE-2021-21708","qid":"38869","title":"Hypertext Preprocessor (PHP) Use After free Vulnerability"},{"cve":"CVE-2021-21708","qid":"502152","title":"Alpine Linux Security Update for php7"},{"cve":"CVE-2021-21708","qid":"502153","title":"Alpine Linux Security Update for php8"},{"cve":"CVE-2021-21708","qid":"502567","title":"Alpine Linux Security Update for php7"},{"cve":"CVE-2021-21708","qid":"710633","title":"Gentoo Linux Hypertext Preprocessor (PHP) Multiple Vulnerabilities (GLSA 202209-20)"},{"cve":"CVE-2021-21708","qid":"751769","title":"SUSE Enterprise Linux Security Update for php74 (SUSE-SU-2022:0654-1)"},{"cve":"CVE-2021-21708","qid":"751885","title":"SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2022:0847-1)"},{"cve":"CVE-2021-21708","qid":"751890","title":"OpenSUSE Security Update for php7 (openSUSE-SU-2022:0847-1)"},{"cve":"CVE-2021-21708","qid":"752863","title":"SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2022:3997-1)"},{"cve":"CVE-2021-21708","qid":"752898","title":"SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2022:4069-1)"},{"cve":"CVE-2021-21708","qid":"752901","title":"SUSE Enterprise Linux Security Update for php74 (SUSE-SU-2022:4068-1)"},{"cve":"CVE-2021-21708","qid":"901901","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for Hypertext Preprocessor (PHP) (8846)"},{"cve":"CVE-2021-21708","qid":"940756","title":"AlmaLinux Security Update for php:7.4 (ALSA-2022:7628)"},{"cve":"CVE-2021-21708","qid":"940757","title":"AlmaLinux Security Update for php:8.0 (ALSA-2022:7624)"},{"cve":"CVE-2021-21708","qid":"940810","title":"AlmaLinux Security Update for Hypertext Preprocessor (PHP) (ALSA-2022:8197)"},{"cve":"CVE-2021-21708","qid":"960248","title":"Rocky Linux Security Update for php:8.0 (RLSA-2022:7624)"},{"cve":"CVE-2021-21708","qid":"960333","title":"Rocky Linux Security Update for php:7.4 (RLSA-2022:7628)"},{"cve":"CVE-2021-21708","qid":"960472","title":"Rocky Linux Security Update for Hypertext Preprocessor (PHP) (RLSA-2022:8197)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2022-02-14T08:00:00.000Z","ID":"CVE-2021-21708","STATE":"PUBLIC","TITLE":"UAF due to php_filter_float() failing"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_affected":"<","version_name":"7.4.x","version_value":"7.4.28"},{"version_affected":"<","version_name":"8.0.X","version_value":"8.0.16"},{"version_affected":"<","version_name":"8.1.X","version_value":"8.1.3"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"dukk at softdev dot online"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416 Use After Free"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://bugs.php.net/bug.php?id=81708","name":"https://bugs.php.net/bug.php?id=81708"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220325-0004/","url":"https://security.netapp.com/advisory/ntap-20220325-0004/"},{"refsource":"GENTOO","name":"GLSA-202209-20","url":"https://security.gentoo.org/glsa/202209-20"}]},"source":{"defect":["https://bugs.php.net/bug.php?id=81708"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-02-27 08:15:00","lastModifiedDate":"2022-10-07 14:31:00","problem_types":["CWE-416"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"8.1.0","versionEndExcluding":"8.1.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"8.0.0","versionEndExcluding":"8.0.16","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.4.0","versionEndExcluding":"7.4.28","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21708","Ordinal":"196397","Title":"CVE-2021-21708","CVE":"CVE-2021-21708","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21708","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}