Advisory

UBUNTU-CVE-2021-21708

Also known as: CVE-2021-21708

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-12-31 00:00 UTC
Modified
2026-04-22 12:46 UTC

Affected packages and fixes

php7.4

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 7.4.3-4ubuntu2.9 (ecosystem)

Fixed versions

7.4.3-4ubuntu2.9

Fix

  • Fixed version 7.4.3-4ubuntu2.9
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php8.1

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 8.1.2-1ubuntu1 (ecosystem)

Fixed versions

8.1.2-1ubuntu1

Fix

  • Fixed version 8.1.2-1ubuntu1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences