ADVISORIES

openEuler Security Advisory

OESA-2022-1581

php security update

Critical CVE-2021-21708

Details

PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.

Security Fix(es):

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.(CVE-2021-21708)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP2php
All versions before 8.0.0-7.oe1 (fixed in 8.0.0-7.oe1)
openEuler:20.03-LTS-SP3php
All versions before 8.0.0-7.oe1 (fixed in 8.0.0-7.oe1)

References