9.8

CVE-2021-21708: UAF due to php_filter_float() failing

Modified
AliasesSUSE-SU-2022:0654-1SUSE-SU-2022:0847-1RHSA-2025:3016
Published 27-02-2022Last modified 17-09-2024

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.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
3.00%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 7 · Related 3

Timeline

  1. 27-02-2022
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (bugs.php.net)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

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 links
Show all 24 references