ALAS2023-2026-3161


Amazon Linux 2023 Security Advisory: ALAS2023-2026-3161
Advisory Released Date: 2026-10-12
Advisory Updated Date: 2026-10-12
Severity: Important

Issue Overview:

The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process. (CVE-2025-1218)

The SOAP HTTP client guards its response buffer growth with a check that relies on signed integer overflow, which is undefined behaviour and is not guaranteed to trigger. When the check is optimised away, a malicious SOAP server can make the client allocate a buffer far smaller than the data it then writes into it, producing a heap buffer overflow. (CVE-2025-14181)

phar_tar_number() parses the octal size field of a TAR header into a uint32_t with no overflow check. The field is 11 octal digits wide and holds values up to 0x1FFFFFFFF, so a size above 0xFFFFFFFF silently wraps. The parser then skips the wrong number of data blocks and interprets attacker-controlled file content as the next TAR header, which lets a crafted archive inject entries that PharData reports and extracts as if they were genuine. (CVE-2026-6103)

cleanup_xml_node() in the SOAP XML parser recurses once per XML nesting level with no depth limit. An unauthenticated attacker can post a SOAP request containing tens of thousands of nested elements to any SoapServer endpoint, exhaust the stack and crash the process. The same unbounded recursion exists in the SOAP value decoder and in the WSDL node search helper. (CVE-2026-91765)

When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 (CVE-2018-1000007). (CVE-2026-91766)

php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a wildcard name whose literal characters are together longer than the hostname being verified. A malicious server presenting such a certificate makes the PHP client read up to SIZE_MAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verify_peer_name is enabled by default. (CVE-2026-91767)

The IPv6 branch of the FastCGI client access check compares only the first 12 bytes of a 16-byte IPv6 address, so listen.allowed_clients matches on a /96 prefix instead of the exact address. An attacker who can source an address sharing the first 96 bits with an allowed one passes the check and reaches the FastCGI endpoint. (CVE-2026-91768)

PHP's OpenSSL stream peer verification checks the certificate's subjectAltName entries first and, whenever no entry matches, falls back to the Common Name. RFC 6125 requires the CN to be ignored once the certificate presents any service identity, so a certificate carrying a non-matching DNS SAN was still accepted when its CN matched the requested peer_name. A certificate trusted by the client for one name can therefore be used to impersonate another.
NOTE: https://github.com/php/php-src/blob/php-8.4.26/NEWS (CVE-2026-91769)

The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value with pestrdup(), which stops at the first NUL byte, while keeping the original length. When the filter later emits a line break it copies the recorded length out of the truncated allocation, reading past its end and placing adjacent heap bytes into the filter output. (CVE-2026-92842)

When the HTTP stream wrapper follows a redirect and the response carries a Location header with an empty value, the redirect code reads one byte past the end of the heap buffer holding the location. The value of that out-of-bounds byte decides which redirect target is built, so a malicious server controls whether the client is sent to the host root or to the current directory. (CVE-2026-93682)


Affected Packages:

php8.2


Issue Correction:
Run dnf update php8.2 --releasever 2023.12.20261012 or dnf update --advisory ALAS2023-2026-3161 --releasever 2023.12.20261012 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation

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

src:
    php8.2-8.2.34-1.amzn2023.0.1.src

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