[SECURITY RELEASE] php/php-src php-8.5.13 - PHP 8.5.13
Fixes advisories: GHSA-8mjj-2r7p-4hg2, GHSA-2fjv-p558-g82m, GHSA-mg3p-mxj9-g2mm, GHSA-g3vh-838c-65v7, GHSA-x8r7-mg3g-74hg, GHSA-jm4m-qfqx-967m, GHSA-mmf9-xm3v-hg2x, GHSA-f6gg-rchx-xw8j, GHSA-658j-r8rw-q6mx, GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, GHSA-4646-p932-gw34, GHSA-qc49-hpvq-g2w6,...
[SECURITY RELEASE] php/php-src php-8.4.28 - PHP 8.4.28
Fixes advisories: GHSA-g3vh-838c-65v7, GHSA-x8r7-mg3g-74hg, GHSA-jm4m-qfqx-967m, GHSA-mmf9-xm3v-hg2x, GHSA-f6gg-rchx-xw8j, GHSA-658j-r8rw-q6mx, GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, GHSA-4646-p932-gw34, GHSA-qc49-hpvq-g2w6, GHSA-3mg3-cr28-46gc, GHSA-5j3f-64r7-f564, GHSA-68fq-fh7h-f8gr,...
[SECURITY RELEASE] php/php-src php-8.3.37 - PHP 8.3.37
Fixes advisories: GHSA-g3vh-838c-65v7, GHSA-jm4m-qfqx-967m, GHSA-mmf9-xm3v-hg2x, GHSA-f6gg-rchx-xw8j, GHSA-658j-r8rw-q6mx, GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, GHSA-4646-p932-gw34, GHSA-qc49-hpvq-g2w6, GHSA-3mg3-cr28-46gc, GHSA-5j3f-64r7-f564, GHSA-68fq-fh7h-f8gr, GHSA-q23r-hr55-xmpg (no...
[SECURITY RELEASE] php/php-src php-8.2.36 - PHP 8.2.36
Fixes advisories: GHSA-jm4m-qfqx-967m, GHSA-mmf9-xm3v-hg2x, GHSA-f6gg-rchx-xw8j, GHSA-658j-r8rw-q6mx, GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, GHSA-4646-p932-gw34, GHSA-qc49-hpvq-g2w6, GHSA-3mg3-cr28-46gc, GHSA-5j3f-64r7-f564, GHSA-68fq-fh7h-f8gr, GHSA-q23r-hr55-xmpg (no release notes)
GHSA-qc49-hpvq-g2w6 / CVE-2026-129289: PHP-FPM request smuggling through an unread HTTP request body
PHP-FPM request smuggling through an unread HTTP request body ### Summary PHP can fail to discard unread bytes from an HTTP request body before reusing a persistent PHP-FPM or LSAPI connection. In PHP-FPM, an unauthenticated attacker can make those bytes form a separate FastCGI request,...
GHSA-658j-r8rw-q6mx / CVE-2026-115560: Session serializer mismatch can lead to remote code execution
Session serializer mismatch can lead to remote code execution ### Summary PHP's session upload progress feature can write attacker-controlled data using one session serialization format and later read it using another. A mismatched decoder can interpret part of a session key as serialized...
GHSA-4646-p932-gw34 / CVE-2026-129506: SOAP use-after-free when processing DTD entity references
SOAP use-after-free when processing DTD entity references ### Summary PHP's SOAP extension can read freed memory while processing XML containing a document type definition (DTD) and an entity reference in an attribute value. An unauthenticated attacker who can send a crafted request to an...
GHSA-x8r7-mg3g-74hg / CVE-2026-129501: Double free during DOM XML serialization
Double free during DOM XML serialization ### Summary PHP's modern DOM XML serializer can incorrectly share ownership of a generated namespace prefix between an element and its descendant. An application that calls `saveXml()` on attacker-controlled XML or HTML can consequently use and free...
GHSA-q23r-hr55-xmpg / CVE-2026-15353: SOAP information disclosure through malformed array dimensions
SOAP information disclosure through malformed array dimensions ### Summary PHP's SOAP extension can expose a small amount of uninitialized heap memory when processing an encoded array with an invalid `arraySize` value. An attacker can supply a crafted SOAP request or response that causes the...
GHSA-68fq-fh7h-f8gr / CVE-2026-128090: PHAR OpenSSL signature bypass via algorithm downgrade
PHAR OpenSSL signature bypass via algorithm downgrade ### Summary An attacker who can modify an OpenSSL-signed Phar archive without changing its trusted public key can make PHP accept arbitrary archive contents. The attacker changes the archive's signature type to a keyless hash such as...
GHSA-5j3f-64r7-f564 / CVE-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction
PHP-CGI out-of-bounds read and write during PATH_INFO correction ### Summary The PHP CGI binary (`php-cgi`) can access memory outside the supplied path information when a web server passes inconsistent script and path values. Depending on the request and configuration, an unauthenticated...
GHSA-3mg3-cr28-46gc / CVE-2026-129292: PHP-FPM status endpoint XSS via unescaped user and script fields
PHP-FPM status endpoint XSS via unescaped user and script fields ### Summary PHP-FPM can include attacker-controlled request metadata without escaping it in the full status response. An unauthenticated attacker can place HTML or JavaScript in a worker's scoreboard entry and execute it in the...
GHSA-gr4f-wgx5-jpfv / CVE-2026-129496: Timezone cache use-after-free can lead to remote code execution
Timezone cache use-after-free can lead to remote code execution ### Summary PHP can retain a reference to a freed timezone cache when a diagnostic is written to a PHP error log file during process startup. A later diagnostic during early request initialization can access the freed cache...
GHSA-fm2m-fjf5-v3cp / CVE-2026-126714: Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution ### Summary PHP's file-based session handler can leave a session file containing parts of two different serialized sessions if a write is interrupted. An attacker who can influence the session contents and interrupt a...
GHSA-8mjj-2r7p-4hg2 / CVE-2026-129474: Use-after-free in magic method backtraces can lead to remote code execution
Use-after-free in magic method backtraces can lead to remote code execution ### Summary PHP can access freed memory when collecting the arguments of a method handled by `__call()` or `__callStatic()` for a backtrace. On PHP 8.5 and later, an unauthenticated attacker may be able to trigger...
GHSA-mg3p-mxj9-g2mm / CVE-2026-129438: Incorrect RFC 3986 URI serialization for oversized input
Incorrect RFC 3986 URI serialization for oversized input ### Summary PHP's RFC 3986 URI implementation can return an incorrect string when a very large URI is converted back to text. An application that accepts attacker-controlled URI data and has enough memory to process it may receive a...
GHSA-f6gg-rchx-xw8j / CVE-2026-128064: Mixed-case HTTPS and FTPS URLs can expose data in plaintext
Mixed-case HTTPS and FTPS URLs can expose data in plaintext ### Summary PHP's HTTP and FTP stream wrappers can send data without encryption when an HTTPS or FTPS URL has an uppercase `S` in its scheme, for example `HTTPS://`, `httpS://` or `FTPS://`. Applications using `file_get_contents()`,...
GHSA-mmf9-xm3v-hg2x / CVE-2026-127960: Denial of service through folded HTTP response headers
Denial of service through folded HTTP response headers ### Summary A malicious HTTP server can cause PHP's built-in HTTP stream wrapper to consume excessive CPU while reading a response. Applications using `file_get_contents()`, `fopen()` or other stream functions to fetch an HTTP or HTTPS...
GHSA-2fjv-p558-g82m / CVE-2026-129182: Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown ### Summary As part of CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp), PHP 8.5.12 fixes a generic use-after-free of the `last_fatal_error_backtrace` global by clearing it during executor shutdown. Further scenarios...
GHSA-g3vh-838c-65v7 / CVE-2026-129481: Use-after-free after interrupted session shutdown
Use-after-free after interrupted session shutdown ### Summary PHP can retain a pointer to a script filename after session shutdown is interrupted and the request memory has been released. A later request handled by the same worker can then release the stale string, causing a heap...
GHSA-jm4m-qfqx-967m / CVE-2026-129291: PHP-FPM epoll use-after-free can lead to local privilege escalation
PHP-FPM epoll use-after-free can lead to local privilege escalation ### Summary PHP-FPM can dispatch an epoll event that refers to a freed worker record when worker output capture is enabled. An attacker who can execute PHP code in an unprivileged FPM worker can exploit this use-after-free...
GHSA-w8hw-w9fx-j79w / CVE-2026-109618: RCE via OOM corruption
RCE via OOM corruption ## Summary PHP uses `longjmp()` for out-of-memory (OOM) errors to exit the current context and abort handling of the request. In some contexts, request memory is temporarily reachable before it is fully initialized. If any allocation fails at that point, PHP does not...
GHSA-6wmf-4rv5-p3rp / CVE-2026-109619: RCE via stale global state
RCE via stale global state ## Summary PHP contains various global state, such as error, session, object and extension state that is retained by a worker but points to memory owned by one request. That state must be reset before the request memory is released. Some input, configuration,...
GHSA-7875-c8px-7q5f / CVE-2026-93682: Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header
Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header ### Summary 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...
GHSA-88hq-2827-7pg6 / CVE-2026-92842: OOB read / info leak in convert.* stream filters when line-break-chars contains NUL
OOB read / info leak in convert.* stream filters when line-break-chars contains NUL ### Summary 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...
GHSA-ch8v-r6jh-4vvr: ext/filter: encode 0xFF in FILTER_SANITIZE_ENCODED
ext/filter: encode 0xFF in FILTER_SANITIZE_ENCODED ### Summary `php_filter_encode_url()` builds a 256-entry lookup table that decides which bytes `FILTER_SANITIZE_ENCODED` percent-encodes, but initialises only the first 255 entries. Entry 255 is read uninitialised, so whether the byte `0xFF`...
GHSA-62xp-839h-2637 / CVE-2026-91768: IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison (memcmp 12 bytes)
IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison (memcmp 12 bytes) ### Summary 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...
GHSA-vvx9-73fr-5jjx / CVE-2026-91769: TLS Hostname Verification Falls Back to CN After SAN Mismatch
TLS Hostname Verification Falls Back to CN After SAN Mismatch ### Summary 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...
GHSA-xr7j-rvgx-xq5p / CVE-2026-91767: Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CN
Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CN ### Summary `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...
GHSA-r6x9-5r99-36j7 / CVE-2025-1218: Various packet overreads in mysqlnd_writeprotocol.c
Various packet overreads in mysqlnd_writeprotocol.c ### Summary 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...
GHSA-fpwc-w8rq-cr92 / CVE-2026-91766: Cross-origin credential leak in HTTP stream wrapper redirects
Cross-origin credential leak in HTTP stream wrapper redirects ### Summary 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...
GHSA-rgrp-mwpx-f6rm / CVE-2026-91765: SOAP: Unbounded Recursion in Server-Side cleanup_xml_node
SOAP: Unbounded Recursion in Server-Side cleanup_xml_node ### Summary `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`...
GHSA-cj93-vc83-wgqv / CVE-2025-14181: Integer overflow to buffer overflow in soap HTTP parsing
Integer overflow to buffer overflow in soap HTTP parsing ### Summary 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...
GHSA-j3wh-g957-2m85 / CVE-2026-6103: Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection
Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injection ### Summary `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`...
GHSA-9f67-6fw4-hpfp / CVE-2026-17545: PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS
PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS ### Summary On Windows, PHP's filesystem and stream APIs do not reject reserved device names such as `CON`, `PRN`, `AUX`, `NUL`, `COM1` to `COM9`, `LPT1` to `LPT9`, `CONIN$` and `CONOUT$` when...
GHSA-vc5h-9ppw-p5f3 / CVE-2026-7260: Stack overflow in phar with circular symlinks
Stack overflow in phar with circular symlinks `phar_get_link_source()` in `ext/phar/util.c` recursively follows symbolic links in phar archives without any depth limit or cycle detection. A crafted tar-based phar archive containing circular symlinks causes unbounded recursion, exhausting the C...
GHSA-x692-q9x7-8c3f / CVE-2026-17544: Out-of-bounds write in bccomp() via crafted operand and scale
Out-of-bounds write in bccomp() via crafted operand and scale A call to `bccomp()` with attacker-supplied inputs can lead to an out-of-bounds write to either stack or heap memory. The bug occurs in `bc_str2num()` when the scale truncates a number whose trailing zeros are subsequently...
GHSA-7qpv-r5mr-78m4 / CVE-2026-17543: SQL injection in ext-pgsql via E'...' backslash breakout
SQL injection in ext-pgsql via E'...' backslash breakout `php_pgsql_convert()` is used to convert and escape user-provided parameters in `pg_insert()`, `pg_update()`, `pg_select()`, and `pg_delete()`. It does so using `PQescapeStringConn()` and then wraps the result in an escape string...
GHSA-mhmq-mmqj-2v39 / CVE-2026-12184: Failure to setup TLS with a remote server can result in a remote DoS
Failure to setup TLS with a remote server can result in a remote DoS ### Summary In `php_stream_url_wrap_http_ex`, when TLS crypto setup fails (via `php_stream_xport_crypto_setup` or `php_stream_xport_crypto_enable`), the stream is closed and reset to `NULL`. However, the subsequent peer...
GHSA-7jrw-539f-x6vr / CVE-2026-14355: ext/openssl: Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD
ext/openssl: Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD ### Summary Usate of AES-WRAP-PAD can result in memory corruption and abort of application. ### Details The output buffer for the AES key-wrap-with-padding operation is sized from the plaintext...
GHSA-hmxp-6pc4-f3vv / CVE-2026-7262: NULL pointer dereference in SOAP apache:Map decoder with missing <value>
NULL pointer dereference in SOAP apache:Map decoder with missing `to_zval_map()` in `ext/soap/php_encoding.c` decodes `apache:Map` nodes. The `` branch correctly guards against missing keys, but the `` branch rechecks `xmlKey` instead of `xmlValue`:...
GHSA-m33r-qmcv-p97q / CVE-2026-7261: SoapServer session-persisted object use-after-free via SOAP header fault
SoapServer session-persisted object use-after-free via SOAP header fault `SOAP_PERSISTENCE_SESSION` allows to persist the SOAP handler object between requests using the session storage. Normally the object is immediately released after `SoapServer::handle()`, unless this setting is specified....
GHSA-wm6j-2649-pv75 / CVE-2026-7259: Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()
Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init() The following PHP code triggers a segmentation fault due to a NULL pointer dereference: ```php <?php mb_regex_encoding('iso-8859-11'); $test_str = 'x'; if (mb_ereg_search_init($test_str)) { $val =...
GHSA-7qg2-v9fj-4mwv / CVE-2026-6735: XSS within PHP-FPM status endpoint
XSS within PHP-FPM status endpoint Improper sanitization of the request URI within the PHP-FPM status page allows an attacker to execute arbitrary JavaScript code (XSS) on the victims machine, possibly stealing cookies on insufficiently hardened systems, or stealing other sensitive data such as...
GHSA-85c2-q967-79q5 / CVE-2026-6722: Use-After-Free in SOAP using Apache map with Remote Code Execution
Use-After-Free in SOAP using Apache map with Remote Code Execution ext-soap supports deduplicating objects in the XML graph through `id` and `href`. When traversing the XML graph, ext-soap will remember all plain PHP objects using the hash map `SOAP_GLOBAL(ref_map)`, where the pointer to the...
GHSA-m8rr-4c36-8gq4 / CVE-2026-7258: Out-of-bounds read in urldecode()
Out-of-bounds read in urldecode() Consider the following snippet within `php_url_decode_ex()` at `ext/standard/url.c`, called from PHPs `urldecode()` function: https://github.com/php/php-src/blob/dcf653339c245e25ea319248d0fc071a9405d688/ext/standard/url.c#L592-L593 According to the C11...
GHSA-74r9-qxhc-fx53 / CVE-2026-6104: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding
Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding ## Summary A global buffer over-read exists in `mbfl_name2encoding_ex()` (`ext/mbstring/libmbfl/mbfl/mbfl_encoding.c`, line 352), called from `mb_convert_encoding(...)` and other mbstring functions, when parsing...
GHSA-w476-322c-wpvm / CVE-2025-14179: SQL injection in pdo_firebird via NUL bytes in quoted strings
SQL injection in pdo_firebird via NUL bytes in quoted strings Improper handling of NUL bytes during the preparation of Firebird SQL queries leads to sections of the of the query being dropped. NUL bytes can find their way into queries even under regular circumstances via...
GHSA-96wq-48vp-hh57 / CVE-2026-7568: Signed integer overflow in metaphone()
Signed integer overflow in metaphone() **Researcher: Aleksey Solovev (Positive Technologies)** The PHP standard library provides the function `metaphone()` (php-src/ext/standard/metaphone.c). This function is used for searching and matching words based on their phonetic sound. This function...