CVE-2021-21708: UAF due to php_filter_float() failing
Vulnerability summary
CVE-2021-21708 is a critical (CVSS 9.8) Use After Free vulnerability in php group php. EPSS estimates a 3.00% chance of exploitation in the next 30 days, higher than 87.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 3Timeline
- 27-02-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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 metrics
7 scores · 6 sources · 2 versions- CVE.orgCNA8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LDiffers
- OSV · Red hatEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
3.00%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.00% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat75 products
- apcu-panel< 0:5.1.18-1.module+el8.3.0+6678+b09f589e
- libzip< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-debuginfo< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-debugsource< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
- libzip-devel< 0:1.6.1-1.module+el8.3.0+6678+b09f589e
Suse13 products
- php74&distro=SUSE Linux Enterprise Module for Web and Scripting 12< 7.4.6-1.36.1
- php74&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 7.4.6-1.36.1
- php7&distro=SUSE Enterprise Storage 7< 7.4.6-3.35.1
- php7&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS< 7.4.6-3.35.1
- php7&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 7.4.6-3.35.1
Opensuse4 products
- php7-test&distro=openSUSE Leap 15.3< 7.4.6-3.35.1
- php7&distro=openSUSE Leap 15.3< 7.4.6-3.35.1
- php7&distro=openSUSE Tumbleweed< 7.4.28-1.1
- php8&distro=openSUSE Tumbleweed< 8.1.3-1.1
Alpine2 products
- php7< 7.4.32-r0 | < 7.4.28-r0
- php8< 8.0.16-r0
Ubuntu2 products
- php7.4< 7.4.3-4ubuntu2.9
- php8.1< 8.1.2-1ubuntu1
Debian1 product
- php7.4< 7.4.28-1+deb11u1
Php1 product
- php≥ 7.4.0, < 7.4.28 | ≥ 8.0.0, < 8.0.16 | ≥ 8.1.0, < 8.1.3
Php group1 product
- php≥ 7.4.x, < 7.4.28 | ≥ 8.0.X, < 8.0.16 | ≥ 8.1.X, < 8.1.3
8 vendors · 99 products
References
24 linksShow all 24 references
- lists.opensuse.org/archives/…Advisory