An update for php is now available for openEuler-20.03-LTS-SP3
Security Advisory
openeuler-security@openeuler.org
openEuler security committee
openEuler-SA-2023-1620
Final
1.0
1.0
2023-09-09
Initial
2023-09-09
2023-09-09
openEuler SA Tool V1.0
2023-09-09
php security update
An update for php is now available for openEuler-20.03-LTS-SP3.
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 prior to 7.4.33, 8.0.25 and 8.2.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information.(CVE-2022-31630)
A flaw was found in PHP. This issue occurs due to an uncaught integer overflow in PDO::quote() of PDO_SQLite returning an improperly quoted string. With the implementation of sqlite3_snprintf(), it is possible to force the function to return a single apostrophe if the function is called on user-supplied input without any length restrictions in place.(CVE-2022-31631)
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid.(CVE-2023-0567)
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification. (CVE-2023-0568)
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or disk space. (CVE-2023-0662)
In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce.
(CVE-2023-3247)
In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down.
(CVE-2023-3823)
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
(CVE-2023-3824)
An update for php is now available for openEuler-20.03-LTS-SP3.
openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.
High
php
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2022-31630
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2022-31631
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-0567
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-0568
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-0662
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-3247
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-3823
https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2023-3824
https://nvd.nist.gov/vuln/detail/CVE-2022-31630
https://nvd.nist.gov/vuln/detail/CVE-2022-31631
https://nvd.nist.gov/vuln/detail/CVE-2023-0567
https://nvd.nist.gov/vuln/detail/CVE-2023-0568
https://nvd.nist.gov/vuln/detail/CVE-2023-0662
https://nvd.nist.gov/vuln/detail/CVE-2023-3247
https://nvd.nist.gov/vuln/detail/CVE-2023-3823
https://nvd.nist.gov/vuln/detail/CVE-2023-3824
openEuler-20.03-LTS-SP3
php-odbc-8.0.30-1.oe1.aarch64.rpm
php-debugsource-8.0.30-1.oe1.aarch64.rpm
php-fpm-8.0.30-1.oe1.aarch64.rpm
php-dbg-8.0.30-1.oe1.aarch64.rpm
php-devel-8.0.30-1.oe1.aarch64.rpm
php-enchant-8.0.30-1.oe1.aarch64.rpm
php-opcache-8.0.30-1.oe1.aarch64.rpm
php-intl-8.0.30-1.oe1.aarch64.rpm
php-mysqlnd-8.0.30-1.oe1.aarch64.rpm
php-pgsql-8.0.30-1.oe1.aarch64.rpm
php-ldap-8.0.30-1.oe1.aarch64.rpm
php-process-8.0.30-1.oe1.aarch64.rpm
php-xml-8.0.30-1.oe1.aarch64.rpm
php-help-8.0.30-1.oe1.aarch64.rpm
php-cli-8.0.30-1.oe1.aarch64.rpm
php-sodium-8.0.30-1.oe1.aarch64.rpm
php-mbstring-8.0.30-1.oe1.aarch64.rpm
php-gd-8.0.30-1.oe1.aarch64.rpm
php-snmp-8.0.30-1.oe1.aarch64.rpm
php-dba-8.0.30-1.oe1.aarch64.rpm
php-ffi-8.0.30-1.oe1.aarch64.rpm
php-debuginfo-8.0.30-1.oe1.aarch64.rpm
php-bcmath-8.0.30-1.oe1.aarch64.rpm
php-embedded-8.0.30-1.oe1.aarch64.rpm
php-soap-8.0.30-1.oe1.aarch64.rpm
php-pdo-8.0.30-1.oe1.aarch64.rpm
php-8.0.30-1.oe1.aarch64.rpm
php-common-8.0.30-1.oe1.aarch64.rpm
php-tidy-8.0.30-1.oe1.aarch64.rpm
php-gmp-8.0.30-1.oe1.aarch64.rpm
php-8.0.30-1.oe1.src.rpm
php-sodium-8.0.30-1.oe1.x86_64.rpm
php-common-8.0.30-1.oe1.x86_64.rpm
php-pgsql-8.0.30-1.oe1.x86_64.rpm
php-cli-8.0.30-1.oe1.x86_64.rpm
php-tidy-8.0.30-1.oe1.x86_64.rpm
php-embedded-8.0.30-1.oe1.x86_64.rpm
php-dba-8.0.30-1.oe1.x86_64.rpm
php-gmp-8.0.30-1.oe1.x86_64.rpm
php-soap-8.0.30-1.oe1.x86_64.rpm
php-gd-8.0.30-1.oe1.x86_64.rpm
php-mbstring-8.0.30-1.oe1.x86_64.rpm
php-process-8.0.30-1.oe1.x86_64.rpm
php-opcache-8.0.30-1.oe1.x86_64.rpm
php-bcmath-8.0.30-1.oe1.x86_64.rpm
php-snmp-8.0.30-1.oe1.x86_64.rpm
php-fpm-8.0.30-1.oe1.x86_64.rpm
php-pdo-8.0.30-1.oe1.x86_64.rpm
php-ffi-8.0.30-1.oe1.x86_64.rpm
php-mysqlnd-8.0.30-1.oe1.x86_64.rpm
php-8.0.30-1.oe1.x86_64.rpm
php-enchant-8.0.30-1.oe1.x86_64.rpm
php-intl-8.0.30-1.oe1.x86_64.rpm
php-help-8.0.30-1.oe1.x86_64.rpm
php-debuginfo-8.0.30-1.oe1.x86_64.rpm
php-odbc-8.0.30-1.oe1.x86_64.rpm
php-debugsource-8.0.30-1.oe1.x86_64.rpm
php-devel-8.0.30-1.oe1.x86_64.rpm
php-xml-8.0.30-1.oe1.x86_64.rpm
php-dbg-8.0.30-1.oe1.x86_64.rpm
php-ldap-8.0.30-1.oe1.x86_64.rpm
In PHP versions prior to 7.4.33, 8.0.25 and 8.2.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information.
2023-09-09
CVE-2022-31630
openEuler-20.03-LTS-SP3
High
7.1
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
A flaw was found in PHP. This issue occurs due to an uncaught integer overflow in PDO::quote() of PDO_SQLite returning an improperly quoted string. With the implementation of sqlite3_snprintf(), it is possible to force the function to return a single apostrophe if the function is called on user-supplied input without any length restrictions in place.
2023-09-09
CVE-2022-31631
openEuler-20.03-LTS-SP3
High
8.8
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid.
2023-09-09
CVE-2023-0567
openEuler-20.03-LTS-SP3
Medium
6.2
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification.
2023-09-09
CVE-2023-0568
openEuler-20.03-LTS-SP3
High
8.1
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, excessive number of parts in HTTP form upload can cause high resource consumption and excessive number of log entries. This can cause denial of service on the affected server by exhausting CPU resources or disk space.
2023-09-09
CVE-2023-0662
openEuler-20.03-LTS-SP3
High
7.5
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generator failure, it could lead to a disclosure of 31 bits of uninitialized memory from the client to the server, and it also made easier to a malicious server to guess the client's nonce.
2023-09-09
CVE-2023-3247
openEuler-20.03-LTS-SP3
Low
3.0
AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down.
2023-09-09
CVE-2023-3823
openEuler-20.03-LTS-SP3
Medium
5.5
AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
2023-09-09
CVE-2023-3824
openEuler-20.03-LTS-SP3
Medium
5.5
AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
php security update
2023-09-09
https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1620