CVE-2021-21708

UAF due to php_filter_float() failing

Published Feb 27, 2022 CVSS 3.1 · 8.2 High EPSS 3.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5082-1 php7.4 security update
EUVD EUVD EUVD-2021-8880 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.
Ubuntu USN Ubuntu USN USN-5303-1 PHP vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00297}

epss

{'score': 0.00305}

Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.4
cpe:/a:redhat:rhel_e4s:8.4
cpe:/a:redhat:rhel_tus:8.4
Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
CPEs cpe:/a:redhat:rhel_aus:8.6
cpe:/a:redhat:rhel_e4s:8.6
cpe:/a:redhat:rhel_tus:8.6
Vendors & Products Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
Type Values Removed Values Added
Metrics threat_severity

Moderate

threat_severity

Important

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 17, 2024, 3:18 AM
Reserved
Jan 4, 2021, 12:00 AM
Status
Modified
Published
Feb 27, 2022, 8:15 AM
Modified
Jun 17, 2026, 3:36 AM
Severity
Important
Public date
Feb 17, 2022, 12:00 AM