ADVISORIES

openEuler Security Advisory

OESA-2024-1734

php security update

Medium CVE-2024-5458

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 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.(CVE-2024-5458)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP4php
All versions before 8.0.30-4.oe2003sp4 (fixed in 8.0.30-4.oe2003sp4)
openEuler:22.03-LTS-SP1php
All versions before 8.0.30-4.oe2203sp1 (fixed in 8.0.30-4.oe2203sp1)
openEuler:22.03-LTS-SP3php
All versions before 8.0.30-4.oe2203sp3 (fixed in 8.0.30-4.oe2203sp3)
openEuler:24.03-LTSphp
All versions before 8.3.8-1.oe2403 (fixed in 8.3.8-1.oe2403)

References