ALAS-2023-324


Amazon Linux 2023 Security Advisory: ALAS-2023-324
Advisory Release Date: 2023-08-31 21:43 Pacific
Advisory Updated Date: 2023-09-07 21:18 Pacific
Severity: Important

Issue Overview:

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)


Affected Packages:

php8.2


Issue Correction:
Run dnf update php8.2 --releasever 2023.1.20230906 to update your system.

New Packages:
aarch64:
    php8.2-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-dbg-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-mbstring-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-dba-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-intl-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-bcmath-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-ldap-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-gd-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-ffi-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-soap-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-embedded-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-fpm-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pdo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-gd-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-tidy-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-debugsource-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pgsql-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-devel-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-process-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-opcache-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-dbg-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-cli-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-ldap-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-snmp-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-cli-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-opcache-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-common-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pgsql-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-fpm-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-intl-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-dba-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-snmp-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-mbstring-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-ffi-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-mysqlnd-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-process-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-odbc-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-embedded-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-xml-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-enchant-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-soap-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-xml-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-mysqlnd-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-common-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-odbc-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pspell-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pdo-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-gmp-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-tidy-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-gmp-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-bcmath-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-enchant-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-pspell-debuginfo-8.2.9-1.amzn2023.0.2.aarch64
    php8.2-8.2.9-1.amzn2023.0.2.aarch64

src:
    php8.2-8.2.9-1.amzn2023.0.2.src

x86_64:
    php8.2-xml-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-ffi-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-cli-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-embedded-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-ldap-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-cli-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pgsql-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-odbc-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pdo-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-soap-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-gd-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-mbstring-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-opcache-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-dbg-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-common-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-soap-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-dbg-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-mysqlnd-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-debugsource-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-mysqlnd-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-fpm-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-snmp-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-xml-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pgsql-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-opcache-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-devel-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-dba-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-common-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-intl-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-embedded-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pdo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-process-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-fpm-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-intl-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-mbstring-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-ffi-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-tidy-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-gmp-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-bcmath-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-process-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-gd-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-odbc-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-ldap-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-gmp-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-bcmath-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-dba-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-snmp-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-tidy-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-enchant-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pspell-debuginfo-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-enchant-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-pspell-8.2.9-1.amzn2023.0.2.x86_64
    php8.2-8.2.9-1.amzn2023.0.2.x86_64