ADVISORIES

Amazon Linux Security Advisory

ALAS2-2025-2832

Amazon Linux 2 2017.12 - ALAS2-2025-2832: important priority package update for php

Details

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2024-8928: php: Erroneous parsing of multipart form data

CVE-2024-8925: Erroneous parsing of multipart form data

NOTE: Fixed in 8.3.12, 8.2.24 NOTE: https://github.com/php/php-src/security/advisories/GHSA-9pqp-7h25-4f32 NOTE: https://github.com/php/php-src/commit/19b49258d0c5a61398d395d8afde1123e8d161e0 (PHP-8.2.24)

CVE-2023-3824: 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-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, 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-2022-31631: 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-2019-19203: An issue was discovered in Oniguruma 6.x before 6.9.4_rc2. In the function gb18030_mbc_enc_len in file gb18030.c, a UChar pointer is dereferenced without checking if it passed the end of the matched string. This leads to a heap-based buffer over-read.

CVE-2017-9226: An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2php
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-bcmath
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-cli
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-common
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-dba
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-debuginfo
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-devel
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-embedded
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-enchant
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-fpm
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-gd
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-intl
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-ldap
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-mbstring
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-mysqlnd
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-odbc
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-pdo
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-pgsql
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-process
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-pspell
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-recode
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-snmp
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-soap
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-xml
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)
Amazon Linux:2php-xmlrpc
All versions before 5.4.16-46.amzn2.0.6 (fixed in 5.4.16-46.amzn2.0.6)

References