Name | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5082-1 |
Debian Bugs | 1006672 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
php7.0 (PTS) | stretch (security) | 7.0.33-0+deb9u12 | fixed |
stretch (lts), stretch | 7.0.33-0+deb9u19 | fixed | |
php7.3 (PTS) | buster, buster (lts) | 7.3.31-1~deb10u8 | fixed |
buster (security) | 7.3.31-1~deb10u7 | fixed | |
php7.4 (PTS) | bullseye | 7.4.33-1+deb11u5 | fixed |
bullseye (security) | 7.4.33-1+deb11u6 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
php5 | source | jessie | (not affected) | |||
php5 | source | (unstable) | (unfixed) | |||
php7.0 | source | (unstable) | (not affected) | |||
php7.3 | source | (unstable) | (not affected) | |||
php7.4 | source | bullseye | 7.4.28-1+deb11u1 | DSA-5082-1 | ||
php7.4 | source | (unstable) | (unfixed) | |||
php8.1 | source | (unstable) | 8.1.5-1 | 1006672 |
- php7.3 <not-affected> (Vulnerable code introduced in 7.4)
- php7.0 <not-affected> (Vulnerable code introduced in 7.4)
Fixed in 8.1.3, 7.4.28
PHP Bug: https://bugs.php.net/81708
[jessie] - php5 <not-affected> (Vulnerable code introduced in 7.4)