PHP 8.3.28 is known vulnerabilities confirmed: 43 confirmed known vulnerabilities (8 critical, 11 high, 19 medium, 5 low, 10 RCE-related). Support status: Security fixes only. This is a version-based check, not a full application audit. Recommended upgrade: PHP 8.6.0.
Security status
Known vulnerabilities confirmed
At least one CVE has a structured PHP runtime range that contains this version, and trusted sources do not disagree. Red means confirmed issues in the data, not that every deployment can be exploited.
Risk: Confirmed issues in the checked data
43 confirmed findings (8 critical, 11 high, 19 medium, 5 low). A match does not prove every deployment can be exploited.
This is a version-based check of published PHP runtime records. It is not a full application audit. Extensions, configuration, application code, and the SAPI can change the real risk.
Confirmed by severity: 8 critical, 11 high, 19 medium, 5 low. 0 still need verification.
Sources: NIST NVD API 2.0, php.net supported versions, end-of-life list, and releases, PHP ChangeLog, GitHub Security Advisories for php/php-src. Data last updated 24 Nov 2026, 03:47 UTC.
Data last updated: 24 Nov 2026, 03:47 UTC
Current version
8.3.28
Official support
Security fixes only
PHP 8.3
Known vulnerabilities
43
0 need verification
Critical / high
8 / 11
Confirmed findings only
RCE-related CVEs
10
Confirmed, with a stated basis
Minimum security fix
8.3.37
Recommended upgrade
8.6.0
Last data update
24 Nov 2026, 03:47 UTC
Fresh cache
Upgrade recommendation
Minimum security fix on PHP 8.3
8.3.37 is the lowest release on PHP 8.3 that contains every verified fix for the confirmed issues in this result. Staying on 8.3 means you still need to plan for the end of support on 2027-12-31.
Recommended long-term release
8.6.0 is the latest patch on PHP 8.6, which php.net lists as active support. It is the long-term upgrade, chosen because the branch is still supported. This check does not claim that release is vulnerability-free.
No PHP release should be treated as vulnerability-free. New issues are published after this dataset was synced, and some bugs depend on how PHP is installed.
PHP 8.3 receives security fixes only until 2027-12-31. Bugfix releases have stopped.
Moving from 8.3 to 8.6 can change language behavior, removed extensions, and default settings. Review each migration guide before upgrading: https://www.php.net/manual/en/migration84.php, https://www.php.net/manual/en/migration85.php, https://www.php.net/manual/en/migration86.php.
If this PHP build comes from a Linux distribution (Debian, Ubuntu, RHEL, Alpine, and others), the package may include backported security fixes that do not change the MAJOR.MINOR.PATCH string. This check cannot see those patches. A match is not proof the distro package is still vulnerable, and a clean result is not proof every fix was included. Check the distribution's own security tracker for the package you installed.
Upgrade commands
Examples use the versions already named in this report. They do not claim a CVE is fixed, and they are not run here.
Confirm the installed version
php -v
Read the MAJOR.MINOR.PATCH line. This site never runs that command for you.
Minimum verified fix on the current branch
# Report named 8.3.37 as a verified fix on this branch.
# Install that release from php.net or your platform, then run php -v.
A same-branch patch is not a long-term target when the branch is out of support. No package version was invented for your distro.
Homebrew (macOS or Linux)
brew install php@8.6
php -v
Installs the php@8.6 formula. Homebrew does not pin the patch 8.6.0. Confirm php -v after install.
Docker official PHP image
FROM php:8.6.0-fpm-bookworm
# Rebuild the image after you change the tag.
Example pin for the recommended patch 8.6.0. Confirm the tag exists in the official php image before you deploy. A floating tag such as php:8.6-fpm is not a patch pin. See the Docker tool for the library's current mapping.
ondrej/php is a community archive, not a php.net or Debian project. Review it before you use it. Distro packages can lag or carry backports this checker cannot see.
Composer platform (does not upgrade PHP)
composer config platform.php 8.6.0
This only tells Composer which PHP version to resolve dependencies for. It does not change the runtime and does not fix vulnerabilities.
Support timeline
Initial release
23 Nov 2023
Active support end
31 Dec 2025
Security support end
31 Dec 2027
Latest patch on branch
8.3.37
Remote Code Execution & Shell Execution Risk
This section lists matched records whose CWE or description indicates remote code execution, command injection, shell execution, CGI argument injection, code execution, or unsafe runtime behavior. The basis is shown for each one. A matching version does not prove the bug is exploitable: the SAPI, operating system, web server, and extensions decide whether the vulnerable code path exists.
CVE-2026-6722Confirmed vulnerableCRITICAL
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.
Affected versions: PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).
Affected versions: PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
Affected versions: PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
### 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 object data. An application with a suitable object gadget chain can then execute code with the privileges of the PHP worker.
This is a configuration-dependent deserialization issue, separate from the stale global state vulnerability in CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). Session upload progress was introduced in PHP 5.4.0, so older unsupported releases may also be affected.
### Details
The affected setup has the following conditions:
- Session upload progress is enabled, and an attacker can submit a multipart upload to a context using `php_binary` or `php_serialize` as its session serializer.
- A later or concurrent operation can access the same stored session, using the same session ID and the `php` serializer.
- For code execution, the reading application has a suitable deserialization gadget chain available.
The mismatch can arise when an application changes `session.serialize_handler` to `php` before calling `session_start()`. It can also arise between separate applications, pools, virtual hosts, or command-line processes with different fixed INI settings. With the `files` handler, this requires the same session storage directory, the same session ID, and permissions allowing both sides to access that file. Separate FPM pools do not automatically provide separate session storage. A runtime configuration change is not required, but workers using the same serializer do not create this mismatch.
During multipart processing, PHP appends the submitted `PHP_SESSION_UPLOAD_PROGRESS` value to an upload-progress session key and persists it. The `php` format separates each key from its serialized value with `|`. The other formats represent keys differently. If their output is read as `php`, an attacker-supplied delimiter can cause bytes inside the key to be passed to PHP's unserialization machinery.
Objects may be created and their deserialization or destruction callbacks invoked before trailing data causes the session decoder to reject the record. The 127-byte key limit in `php_binary` does not prevent payloads that span multiple session records.
### Impact
Successful exploitation can cause remote code execution, file modification, session corruption, or denial of service. The report includes command execution using a Guzzle object gadget on PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Command execution was also reproduced with a Monolog 2.11.1 gadget using a `php_serialize` writer and a `php` reader. Exploitability depends on the shared session configuration, access to the writing and reading paths, and the classes available to the reader.
An application that never changes its serializer at runtime can still be affected if another application or process writes incompatible data into the same session store.
### Affected versions
Session upload progress has been affected since it was introduced in PHP 5.4.0. The variant that uses a `php_serialize` writer requires PHP 5.5.4 or later. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. The fix disables session upload progress by default and rejects runtime changes to session settings, including `session.serialize_handler`, while upload progress is enabled. Keeping the feature disabled removes the upload-progress attack path described in this advisory. Check for existing configuration that explicitly enables it, because an explicit setting overrides the new default.
**If session upload progress is explicitly enabled in any application or pool, all readers and writers of the session data it can access must use the same `session.serialize_handler`, even after the update.** The fix does not enforce matching serializers across separate configurations.
For installations that need the feature, check the effective settings in php.ini, FPM pools, virtual hosts, application overrides, and command-line jobs. Isolate session storage when applications require different formats. When changing an existing store's format, migrate or expire its old records instead of reading them with the new serializer.
Otherwise, keep `session.upload_progress.enabled=0` in every configuration that can write to the affected session store. Set this administratively before request input is processed. Calling `ini_set()` from the application is too late. Do not rely on upload-progress cleanup to prevent a concurrent read.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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 replacement write may be able to make PHP deserialize attacker-controlled objects when the session is next opened. A suitable object gadget chain in the application can turn this into remote code execution.
This affects the `files` session save handler, which is PHP's default. The issue is not limited to session upload progress or PHP 8.6.
### Details
When updating a session, `ps_files_write()` writes the new serialized data into the existing file. The vulnerable implementation does not clear the existing contents before every write. If the operation stops after replacing only part of the file, the result can contain a prefix of the new session followed by a suffix of the old one. The file lock prevents competing session operations from accessing the file during the write, but does not make an interrupted write atomic.
PHP's session decoders use its unserialization machinery to restore session values. Carefully arranged old and new data can cause the combined file to be interpreted differently from either original session. Bytes that were previously part of an ordinary string can become serialized object data. A later `session_start()` or another session-reading operation can then create those objects and invoke their deserialization behavior.
Session upload progress provides one way for a remote client to influence stored session data through multipart uploads. The same underlying problem can arise when an application stores large user-controlled strings in a session. In threaded PHP builds, a hard memory-limit failure in another thread can terminate the process while the session write is in progress. This provides a way to influence where the write stops.
The fix truncates the session file to zero before writing the replacement data and aborts the write if truncation fails. An interrupted write can still lose session data, but it can no longer retain the old suffix that enables this attack.
### Impact
Successful exploitation can execute code with the privileges of the PHP worker. It requires attacker influence over the session data, an interruption at a useful point in the write, and an application with a suitable deserialization gadget chain. The issue can also corrupt session state. Authentication requirements depend on how the application exposes the affected session operations.
Other session storage implementations are not affected by this specific file-write defect, although their own handling of interrupted updates must be considered separately.
### Affected versions
The affected code has been present since PHP 4.1.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary measure, disable `session.upload_progress.enabled` administratively if the feature is not needed, and limit the amount of untrusted data stored in sessions. Disabling upload progress removes that input path but does not fix applications that independently store attacker-controlled session data.
A session storage backend that replaces records atomically can avoid this file-write defect. The PHP update remains the recommended fix for applications using the built-in `files` handler.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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, bypass front-end routing and execute attacker-controlled PHP code with the privileges of the worker.
### Details
FastCGI and LSAPI connections can carry more than one request. Before accepting another request on the same connection, PHP must either consume the previous request body or close the connection.
Opening `php://input` creates a request-body stream, but PHP reads its contents lazily. During request shutdown, PHP incorrectly treated the existence of this stream as evidence that the body had already been handled and skipped the normal cleanup that discards unread input.
An attacker can combine this behaviour with a malformed `multipart/form-data` body that makes PHP's multipart parser stop at a predictable position. If the application then opens `php://input` without reading it to the end, attacker-controlled body bytes remain in the current backend request. This can occur in request frameworks that create an input stream before routing or authentication, even when the selected endpoint does not use the body.
When `FCGI_KEEP_CONN` is enabled, PHP-FPM preserves the connection and starts parsing another FastCGI request. The vulnerable implementation discarded its knowledge that it was still inside an `FCGI_STDIN` record, so a FastCGI message placed at the appropriate body offset was accepted as a new request. The front end never created or authorised this request.
The forged request controls FastCGI parameters including `SCRIPT_FILENAME`, `REMOTE_ADDR` and `PHP_ADMIN_VALUE`. If the attacker knows the path of an existing PHP script, they can set `allow_url_include=1` and `auto_prepend_file=php://input`, causing the forged request's own input to be executed as PHP. The changed administrator settings can also remain active for later requests served by the same worker. The shared request-cleanup error also affects LSAPI's persistent request lifecycle, but LSAPI does not use this FastCGI parameter mechanism.
The issue was introduced with lazy `php://input` handling in PHP 5.6.0. The fix drains input according to whether the body was fully consumed, independently of whether a `php://input` stream exists. PHP-FPM additionally closes a connection instead of accepting another request when the previous FastCGI input record is incomplete.
### Impact
Exploitation requires a front end that enables persistent backend connections and an application path that opens `php://input` without reading it fully. Relevant configurations include nginx with `fastcgi_keep_conn on`, Apache `mod_proxy_fcgi` with `enablereuse=on`, HAProxy FastCGI applications that retain backend connections, and LSAPI. Standard nginx and Apache configurations that close the FastCGI connection after each request are not affected by the demonstrated PHP-FPM attack.
For PHP-FPM, successful exploitation can execute attacker-controlled PHP code as the worker without another user's interaction or a non-default PHP configuration. It can also dispatch an existing PHP script outside the routes exposed by the front end, supply a forged client address to application access controls, or change administrator-level PHP settings for subsequent requests. The attack crosses the HTTP-to-PHP backend trust boundary using a single request. It does not require memory corruption, knowledge of memory addresses or a race condition.
For LSAPI, the shared cleanup error can leave body bytes on a persistent backend connection, desynchronising the request stream and disrupting subsequent requests. The `PHP_ADMIN_VALUE` chain used for PHP-FPM is not an LSAPI parameter path, so this advisory does not establish arbitrary code execution through LSAPI.
### Affected versions
The affected code has been present since PHP 5.6.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, disable backend connection reuse on the affected front end: leave nginx `fastcgi_keep_conn` disabled, leave Apache `enablereuse` disabled, or configure another FastCGI front end to close its backend connection after every request.
Reading `php://input` to the end before completing every request prevents the demonstrated unread-body condition, but error paths, resource exhaustion and application shutdown can make this unreliable as the sole mitigation. Do not expose PHP-FPM or LSAPI listeners directly to untrusted networks.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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 use-after-free.
This is an incomplete fix for CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). It affects PHP 8.3 and later. PHP 8.2 does not contain the affected session filename field.
### Details
When a session starts, PHP records the executing script's filename in an internal global variable. Session shutdown normally releases this string, but it destroys the session variables first. That destruction can invoke application callbacks, including a user-defined stream wrapper's `stream_close()` method.
A fatal error in such a callback can abort session shutdown before the filename is released or cleared. PHP catches the bailout and continues shutting down the request. The request heap is then freed while the worker still retains the filename pointer.
The next request's session initialization does not reset this field. Starting another session can release the stale string, and ordinary session-module shutdown can also reach it even when the next script does not call any session functions. The requests must reach the same worker, but they do not need to belong to the same user or session.
The reported reproducer uses PHP-FPM with OPcache disabled and a stream resource held in the session. Its close callback raises a fatal error during cleanup. A subsequent request then reaches the freed filename. The report confirms the use-after-free on PHP 8.4.27 and 8.5.12. PHP 8.3.36 contains the same vulnerable code.
Unlike the early-error and upload-progress cases in the original advisory, this path does not require a diagnostic-producing FastCGI parameter or session upload progress.
### Impact
An attacker who can cause an application's session cleanup to fail in this way may corrupt memory or crash a reused PHP worker. The use-after-free could potentially lead to remote code execution, but code execution through this specific field has not been demonstrated. Authentication requirements depend on the application path that reaches the failing cleanup.
The demonstrated configuration has OPcache disabled, so the recorded filename belongs to the request heap. A filename retained in persistent OPcache memory does not produce the same dangling pointer. Exploitability depends on how the affected script was loaded and whether its filename is request-owned.
### Affected versions
The affected field was introduced in PHP 8.3.0, when `session_start()` began recording the file and line where a session was started in order to report them in the notice about an already active session. PHP 8.2 and earlier do not contain the field and are not affected.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. The fix clears the recorded session filename and line number during session initialization. It also terminates the PHP process if a module's request-shutdown handler bails out, preventing the process from handling another request with only partially cleaned-up state.
Until the update is available, avoid fatal errors in callbacks reached during session cleanup. For PHP-FPM, setting `pm.max_requests=1` and restarting the workers prevents the demonstrated sequence from reaching a second request in the same worker, at a performance cost.
Disabling session upload progress does not address this path. Enabling OPcache alone is not a reliable mitigation because scripts can still execute without being cached.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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 before it is reset. On affected configurations, a remote attacker can trigger memory corruption, cause a worker to crash, and potentially execute arbitrary code with the privileges of the PHP worker.
### Details
PHP formats file-based error log timestamps using the configured timezone. In a non-thread-safe build, a diagnostic emitted during module startup can cause PHP to allocate the timezone cache in temporary startup memory. That memory is released at the end of startup, but the internal reference to the cache remains until the date extension initializes the first request. An earlier diagnostic, such as the warning produced when request input exceeds `max_input_vars`, can therefore read or modify a freed hash table. The released memory may already contain attacker-controlled request data.
The startup diagnostic must occur late enough that subsequent initialization does not clear the cached reference. Confirmed examples include an invalid `date.timezone` value and a warning or deprecation caused by session configuration. The diagnostic must actually be written through PHP's file-based `error_log` path. FPM's own error log does not by itself meet this condition.
In FPM and Apache mod_php, workers can inherit the stale reference from the parent process. The vulnerable window lasts until a worker completes its first normal request. Newly created or recycled workers can encounter the same condition. A crafted HTTP request has been shown to crash an FPM worker using the default `max_input_vars` value and ordinary nginx header limits. The issue has also been reproduced with CGI.
A separate local FPM proof demonstrated native command execution with known runtime addresses. It uses early HTTP Basic credential decoding to replace the stale cache, then reuses request-data allocations and triggers their destruction while `$_REQUEST` is constructed. That particular chain requires additional configuration, including `auto_globals_jit=0` and cookies in `request_order`, a suitable heap layout, and an Authorization header larger than nginx's default per-header limit. These are conditions of the demonstrated exploit, not general requirements of the underlying memory-corruption flaw. Other exploitation paths may be possible.
Native command execution has also been demonstrated in Apache mod_php. Besides the same GET/COOKIE chain, Apache has a separate path when request startup fails before the cache is reset. Request cleanup can destroy the forged cache and invoke an attacker-controlled destructor. The demonstrated variant uses a POST that exceeds a configured 2 MB PHP memory limit and requires known runtime addresses, a suitable heap layout, and a larger allowed Authorization header. It does not require cookies or changes to `auto_globals_jit` or `request_order`. ASLR remained enabled during these proofs. A remote ASLR bypass is plausible, although a complete independent bypass has not been demonstrated.
### Impact
An unauthenticated remote attacker may be able to crash PHP workers or execute arbitrary code with their privileges on an affected deployment. The trigger requires a suitable startup diagnostic, PHP error logging to a file, and an early request diagnostic in a fresh worker. Code execution has been demonstrated locally in FPM and Apache mod_php with known addresses and additional configuration assumptions. Successful exploitation does not require application-level code execution or attacker control of `PHP_VALUE` or `PHP_ADMIN_VALUE`.
### Affected versions
The affected code has been present since PHP 5.3.18 and 5.4.8. An earlier form of it was present in PHP 5.2.10, 5.2.12 to 5.2.17 and 5.3.0 to 5.3.8. This is based on code inspection.
### Mitigation
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13 when the corresponding release is available. The fix formats error log timestamps in UTC outside a fully initialized active request, avoiding use of request-local timezone state at unsafe points in the lifecycle.
Until an update can be deployed, correct configuration errors and deprecated settings that produce startup diagnostics, then restart the PHP master process and all workers. Sending PHP errors to a suitable logging destination that does not use this file-timestamp path, such as syslog, also avoids the demonstrated trigger. Changing `$_REQUEST` or cookie settings is not a complete mitigation. The demonstrated Apache cleanup path does not require those settings.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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 exposed SOAP endpoint can crash the PHP process handling it. Applications that load attacker-controlled WSDL or imported schema documents can also be affected.
### Details
While cleaning up a parsed XML document, PHP frees the DTD even though attribute values can still refer to content it owns. Processing those attributes can then access freed memory. Removing the DTD also bypasses the SOAP server's normal rejection of documents containing a DTD.
The fix keeps the DTD alive for as long as the XML document needs it and restores the existing SOAP DTD check. The issue predates the changes made for [CVE-2026-91765](https://github.com/php/php-src/security/advisories/GHSA-rgrp-mwpx-f6rm) and affects earlier releases in all supported PHP branches.
### Impact
Exploitation requires the SOAP extension and an application that processes attacker-controlled SOAP XML, WSDL or schema content. Authentication does not protect an endpoint if the application parses the SOAP request before authenticating it.
A crafted document can crash the PHP worker or process, and repeated requests can disrupt service. The original report also described corrupted type information after freed memory was reused. Disclosure of sensitive process memory and arbitrary code execution have not been confirmed.
### Affected versions
SOAP server requests have been affected since PHP 5.6.0. The same cleanup has applied to WSDL and schema documents since PHP 5.0.0, but loading an untrusted WSDL or schema is not considered a security issue. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict access to affected SOAP endpoints or disable them where practical. Load WSDL and imported schemas only from trusted, controlled sources.
If untrusted SOAP requests must be accepted, reject documents containing a DTD before they reach the SOAP extension. Any such filter must correctly handle the XML encodings and request-body transformations accepted by the application. A simple text search is not a complete mitigation.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
### 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 decoded array to contain an unexpected integer key. The value reaches the attacker if the application returns or otherwise exposes that array.
### Details
An empty, whitespace-only or non-numeric `arraySize` can describe no dimensions. PHP nevertheless reads the first array position, which has not been initialized. With PHP's default memory allocator, the read falls within a small allocated block and can return four bytes of unrelated heap data. That value is then used as an array key. When the default allocator is disabled, AddressSanitizer reports an out-of-bounds heap read.
The fix treats a size containing no dimensions as a one-dimensional array. It also covers array dimensions read from WSDL definitions. The vulnerable behaviour is present in all supported PHP branches.
### Impact
An unauthenticated client can trigger the issue through a SOAP endpoint that accepts the crafted input. A malicious or compromised SOAP server can also supply an affected response to `SoapClient`.
The demonstrated impact is limited information disclosure when the application exposes the decoded array. Simply accepting the request does not guarantee that the value is returned to the attacker. The demonstrated case does not crash or corrupt memory with PHP's default allocator. Arbitrary code execution has not been demonstrated.
### Affected versions
The affected code has been present since PHP 5.0.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict access to affected SOAP endpoints and use trusted SOAP services and WSDL definitions.
Where requests or responses can be validated before they reach the SOAP extension, reject encoded arrays whose `arraySize` contains no valid dimension. Avoid returning unvalidated decoded arrays to untrusted clients. These measures reduce exposure but do not replace the parser fix.
Affected versions: 8.3.0 (including) to 8.3.37 (excluding)
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-109618
Confirmed vulnerable
CRITICAL
9.2
PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
8.3.36
CVE-2026-109619
Confirmed vulnerable
CRITICAL
9.2
PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
8.3.36
CVE-2026-115560
Confirmed vulnerable
CRITICAL
9.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-126714
Confirmed vulnerable
CRITICAL
9.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-129289
Confirmed vulnerable
CRITICAL
9.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-129481
Confirmed vulnerable
CRITICAL
9.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-129496
Confirmed vulnerable
CRITICAL
9.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-129291
Confirmed vulnerable
HIGH
8.8
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-127960
Confirmed vulnerable
HIGH
8.7
8.3.18 (including) to 8.3.37 (excluding)
8.3.37
CVE-2025-14178
Confirmed vulnerable
HIGH
8.2
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
8.3.29
CVE-2025-14180
Confirmed vulnerable
HIGH
8.2
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
8.3.29
CVE-2026-12184
Confirmed vulnerable
HIGH
8.2
PHP 8.3 only, 8.3.0 (including) to 8.3.32 (excluding)
8.3.32
CVE-2026-128064
Confirmed vulnerable
HIGH
8.2
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-17543
Confirmed vulnerable
HIGH
8.1
PHP 8.3 only, 8.3.0 (including) to 8.3.33 (excluding); 8.3.0 (including) to 8.3.33 (excluding)
8.3.33
CVE-2026-128090
Confirmed vulnerable
HIGH
7.7
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-91765
Confirmed vulnerable
HIGH
7.5
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2025-14179
Confirmed vulnerable
HIGH
7.4
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-6735
Confirmed vulnerable
HIGH
7.3
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-129538
Confirmed vulnerable
MEDIUM
6.9
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-17545
Confirmed vulnerable
MEDIUM
6.9
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2025-14181
Confirmed vulnerable
MEDIUM
6.5
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-91767
Confirmed vulnerable
MEDIUM
6.5
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-91768
Confirmed vulnerable
MEDIUM
6.5
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2025-14177
Confirmed vulnerable
MEDIUM
6.3
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
8.3.29
CVE-2026-129506
Confirmed vulnerable
MEDIUM
6.3
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-15353
Confirmed vulnerable
MEDIUM
6.3
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-7258
Confirmed vulnerable
MEDIUM
6.3
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-7261
Confirmed vulnerable
MEDIUM
6.3
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-7568
Confirmed vulnerable
MEDIUM
6.3
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2025-1218
Confirmed vulnerable
MEDIUM
5.9
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-91766
Confirmed vulnerable
MEDIUM
5.9
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-92842
Confirmed vulnerable
MEDIUM
5.9
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-93682
Confirmed vulnerable
MEDIUM
5.8
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-7260
Confirmed vulnerable
MEDIUM
5.4
PHP 8.3 only, 8.3.0 (including) to 8.3.33 (excluding); 8.3.0 (including) to 8.3.33 (excluding)
8.3.33
CVE-2026-129292
Confirmed vulnerable
MEDIUM
5.3
8.3.0 (including) to 8.3.37 (excluding)
8.3.37
CVE-2026-14355
Confirmed vulnerable
MEDIUM
5.3
8.3.0 (including) to 8.3.32 (excluding); PHP 8.3 only, 8.3.0 (including) to 8.3.32 (excluding)
8.3.32
CVE-2026-91769
Confirmed vulnerable
MEDIUM
4.3
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
GHSA-ch8v-r6jh-4vvr
Confirmed vulnerable
LOW
3.7
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-6103
Confirmed vulnerable
LOW
3.3
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
8.3.35
CVE-2026-7262
Confirmed vulnerable
LOW
2.9
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
CVE-2026-7259
Confirmed vulnerable
LOW
2.1
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
8.3.31
GHSA-www2-q4fc-65wf
Confirmed vulnerable
LOW
Not provided
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding)
8.3.29
CVE-2026-6722
CRITICAL
CVSS 9.5
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
Fixed: 8.3.36
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).
8.3.36 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.36 (excluding); 8.3.0 (including) to 8.3.36 (excluding)
Fixed: 8.3.36
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
8.3.36 is the fixed release named by the matching range and it is published on php.net.
### 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 object data. An application with a suitable object gadget chain can then execute code with the privileges of the PHP worker.
This is a configuration-dependent deserialization issue, separate from the stale global state vulnerability in CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). Session upload progress was introduced in PHP 5.4.0, so older unsupported releases may also be affected.
### Details
The affected setup has the following conditions:
- Session upload progress is enabled, and an attacker can submit a multipart upload to a context using `php_binary` or `php_serialize` as its session serializer.
- A later or concurrent operation can access the same stored session, using the same session ID and the `php` serializer.
- For code execution, the reading application has a suitable deserialization gadget chain available.
The mismatch can arise when an application changes `session.serialize_handler` to `php` before calling `session_start()`. It can also arise between separate applications, pools, virtual hosts, or command-line processes with different fixed INI settings. With the `files` handler, this requires the same session storage directory, the same session ID, and permissions allowing both sides to access that file. Separate FPM pools do not automatically provide separate session storage. A runtime configuration change is not required, but workers using the same serializer do not create this mismatch.
During multipart processing, PHP appends the submitted `PHP_SESSION_UPLOAD_PROGRESS` value to an upload-progress session key and persists it. The `php` format separates each key from its serialized value with `|`. The other formats represent keys differently. If their output is read as `php`, an attacker-supplied delimiter can cause bytes inside the key to be passed to PHP's unserialization machinery.
Objects may be created and their deserialization or destruction callbacks invoked before trailing data causes the session decoder to reject the record. The 127-byte key limit in `php_binary` does not prevent payloads that span multiple session records.
### Impact
Successful exploitation can cause remote code execution, file modification, session corruption, or denial of service. The report includes command execution using a Guzzle object gadget on PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Command execution was also reproduced with a Monolog 2.11.1 gadget using a `php_serialize` writer and a `php` reader. Exploitability depends on the shared session configuration, access to the writing and reading paths, and the classes available to the reader.
An application that never changes its serializer at runtime can still be affected if another application or process writes incompatible data into the same session store.
### Affected versions
Session upload progress has been affected since it was introduced in PHP 5.4.0. The variant that uses a `php_serialize` writer requires PHP 5.5.4 or later. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. The fix disables session upload progress by default and rejects runtime changes to session settings, including `session.serialize_handler`, while upload progress is enabled. Keeping the feature disabled removes the upload-progress attack path described in this advisory. Check for existing configuration that explicitly enables it, because an explicit setting overrides the new default.
**If session upload progress is explicitly enabled in any application or pool, all readers and writers of the session data it can access must use the same `session.serialize_handler`, even after the update.** The fix does not enforce matching serializers across separate configurations.
For installations that need the feature, check the effective settings in php.ini, FPM pools, virtual hosts, application overrides, and command-line jobs. Isolate session storage when applications require different formats. When changing an existing store's format, migrate or expire its old records instead of reading them with the new serializer.
Otherwise, keep `session.upload_progress.enabled=0` in every configuration that can write to the affected session store. Set this administratively before request input is processed. Calling `ini_set()` from the application is too late. Do not rely on upload-progress cleanup to prevent a concurrent read.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 replacement write may be able to make PHP deserialize attacker-controlled objects when the session is next opened. A suitable object gadget chain in the application can turn this into remote code execution.
This affects the `files` session save handler, which is PHP's default. The issue is not limited to session upload progress or PHP 8.6.
### Details
When updating a session, `ps_files_write()` writes the new serialized data into the existing file. The vulnerable implementation does not clear the existing contents before every write. If the operation stops after replacing only part of the file, the result can contain a prefix of the new session followed by a suffix of the old one. The file lock prevents competing session operations from accessing the file during the write, but does not make an interrupted write atomic.
PHP's session decoders use its unserialization machinery to restore session values. Carefully arranged old and new data can cause the combined file to be interpreted differently from either original session. Bytes that were previously part of an ordinary string can become serialized object data. A later `session_start()` or another session-reading operation can then create those objects and invoke their deserialization behavior.
Session upload progress provides one way for a remote client to influence stored session data through multipart uploads. The same underlying problem can arise when an application stores large user-controlled strings in a session. In threaded PHP builds, a hard memory-limit failure in another thread can terminate the process while the session write is in progress. This provides a way to influence where the write stops.
The fix truncates the session file to zero before writing the replacement data and aborts the write if truncation fails. An interrupted write can still lose session data, but it can no longer retain the old suffix that enables this attack.
### Impact
Successful exploitation can execute code with the privileges of the PHP worker. It requires attacker influence over the session data, an interruption at a useful point in the write, and an application with a suitable deserialization gadget chain. The issue can also corrupt session state. Authentication requirements depend on how the application exposes the affected session operations.
Other session storage implementations are not affected by this specific file-write defect, although their own handling of interrupted updates must be considered separately.
### Affected versions
The affected code has been present since PHP 4.1.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary measure, disable `session.upload_progress.enabled` administratively if the feature is not needed, and limit the amount of untrusted data stored in sessions. Disabling upload progress removes that input path but does not fix applications that independently store attacker-controlled session data.
A session storage backend that replaces records atomically can avoid this file-write defect. The PHP update remains the recommended fix for applications using the built-in `files` handler.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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, bypass front-end routing and execute attacker-controlled PHP code with the privileges of the worker.
### Details
FastCGI and LSAPI connections can carry more than one request. Before accepting another request on the same connection, PHP must either consume the previous request body or close the connection.
Opening `php://input` creates a request-body stream, but PHP reads its contents lazily. During request shutdown, PHP incorrectly treated the existence of this stream as evidence that the body had already been handled and skipped the normal cleanup that discards unread input.
An attacker can combine this behaviour with a malformed `multipart/form-data` body that makes PHP's multipart parser stop at a predictable position. If the application then opens `php://input` without reading it to the end, attacker-controlled body bytes remain in the current backend request. This can occur in request frameworks that create an input stream before routing or authentication, even when the selected endpoint does not use the body.
When `FCGI_KEEP_CONN` is enabled, PHP-FPM preserves the connection and starts parsing another FastCGI request. The vulnerable implementation discarded its knowledge that it was still inside an `FCGI_STDIN` record, so a FastCGI message placed at the appropriate body offset was accepted as a new request. The front end never created or authorised this request.
The forged request controls FastCGI parameters including `SCRIPT_FILENAME`, `REMOTE_ADDR` and `PHP_ADMIN_VALUE`. If the attacker knows the path of an existing PHP script, they can set `allow_url_include=1` and `auto_prepend_file=php://input`, causing the forged request's own input to be executed as PHP. The changed administrator settings can also remain active for later requests served by the same worker. The shared request-cleanup error also affects LSAPI's persistent request lifecycle, but LSAPI does not use this FastCGI parameter mechanism.
The issue was introduced with lazy `php://input` handling in PHP 5.6.0. The fix drains input according to whether the body was fully consumed, independently of whether a `php://input` stream exists. PHP-FPM additionally closes a connection instead of accepting another request when the previous FastCGI input record is incomplete.
### Impact
Exploitation requires a front end that enables persistent backend connections and an application path that opens `php://input` without reading it fully. Relevant configurations include nginx with `fastcgi_keep_conn on`, Apache `mod_proxy_fcgi` with `enablereuse=on`, HAProxy FastCGI applications that retain backend connections, and LSAPI. Standard nginx and Apache configurations that close the FastCGI connection after each request are not affected by the demonstrated PHP-FPM attack.
For PHP-FPM, successful exploitation can execute attacker-controlled PHP code as the worker without another user's interaction or a non-default PHP configuration. It can also dispatch an existing PHP script outside the routes exposed by the front end, supply a forged client address to application access controls, or change administrator-level PHP settings for subsequent requests. The attack crosses the HTTP-to-PHP backend trust boundary using a single request. It does not require memory corruption, knowledge of memory addresses or a race condition.
For LSAPI, the shared cleanup error can leave body bytes on a persistent backend connection, desynchronising the request stream and disrupting subsequent requests. The `PHP_ADMIN_VALUE` chain used for PHP-FPM is not an LSAPI parameter path, so this advisory does not establish arbitrary code execution through LSAPI.
### Affected versions
The affected code has been present since PHP 5.6.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, disable backend connection reuse on the affected front end: leave nginx `fastcgi_keep_conn` disabled, leave Apache `enablereuse` disabled, or configure another FastCGI front end to close its backend connection after every request.
Reading `php://input` to the end before completing every request prevents the demonstrated unread-body condition, but error paths, resource exhaustion and application shutdown can make this unreliable as the sole mitigation. Do not expose PHP-FPM or LSAPI listeners directly to untrusted networks.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 use-after-free.
This is an incomplete fix for CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). It affects PHP 8.3 and later. PHP 8.2 does not contain the affected session filename field.
### Details
When a session starts, PHP records the executing script's filename in an internal global variable. Session shutdown normally releases this string, but it destroys the session variables first. That destruction can invoke application callbacks, including a user-defined stream wrapper's `stream_close()` method.
A fatal error in such a callback can abort session shutdown before the filename is released or cleared. PHP catches the bailout and continues shutting down the request. The request heap is then freed while the worker still retains the filename pointer.
The next request's session initialization does not reset this field. Starting another session can release the stale string, and ordinary session-module shutdown can also reach it even when the next script does not call any session functions. The requests must reach the same worker, but they do not need to belong to the same user or session.
The reported reproducer uses PHP-FPM with OPcache disabled and a stream resource held in the session. Its close callback raises a fatal error during cleanup. A subsequent request then reaches the freed filename. The report confirms the use-after-free on PHP 8.4.27 and 8.5.12. PHP 8.3.36 contains the same vulnerable code.
Unlike the early-error and upload-progress cases in the original advisory, this path does not require a diagnostic-producing FastCGI parameter or session upload progress.
### Impact
An attacker who can cause an application's session cleanup to fail in this way may corrupt memory or crash a reused PHP worker. The use-after-free could potentially lead to remote code execution, but code execution through this specific field has not been demonstrated. Authentication requirements depend on the application path that reaches the failing cleanup.
The demonstrated configuration has OPcache disabled, so the recorded filename belongs to the request heap. A filename retained in persistent OPcache memory does not produce the same dangling pointer. Exploitability depends on how the affected script was loaded and whether its filename is request-owned.
### Affected versions
The affected field was introduced in PHP 8.3.0, when `session_start()` began recording the file and line where a session was started in order to report them in the notice about an already active session. PHP 8.2 and earlier do not contain the field and are not affected.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. The fix clears the recorded session filename and line number during session initialization. It also terminates the PHP process if a module's request-shutdown handler bails out, preventing the process from handling another request with only partially cleaned-up state.
Until the update is available, avoid fatal errors in callbacks reached during session cleanup. For PHP-FPM, setting `pm.max_requests=1` and restarting the workers prevents the demonstrated sequence from reaching a second request in the same worker, at a performance cost.
Disabling session upload progress does not address this path. Enabling OPcache alone is not a reliable mitigation because scripts can still execute without being cached.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 before it is reset. On affected configurations, a remote attacker can trigger memory corruption, cause a worker to crash, and potentially execute arbitrary code with the privileges of the PHP worker.
### Details
PHP formats file-based error log timestamps using the configured timezone. In a non-thread-safe build, a diagnostic emitted during module startup can cause PHP to allocate the timezone cache in temporary startup memory. That memory is released at the end of startup, but the internal reference to the cache remains until the date extension initializes the first request. An earlier diagnostic, such as the warning produced when request input exceeds `max_input_vars`, can therefore read or modify a freed hash table. The released memory may already contain attacker-controlled request data.
The startup diagnostic must occur late enough that subsequent initialization does not clear the cached reference. Confirmed examples include an invalid `date.timezone` value and a warning or deprecation caused by session configuration. The diagnostic must actually be written through PHP's file-based `error_log` path. FPM's own error log does not by itself meet this condition.
In FPM and Apache mod_php, workers can inherit the stale reference from the parent process. The vulnerable window lasts until a worker completes its first normal request. Newly created or recycled workers can encounter the same condition. A crafted HTTP request has been shown to crash an FPM worker using the default `max_input_vars` value and ordinary nginx header limits. The issue has also been reproduced with CGI.
A separate local FPM proof demonstrated native command execution with known runtime addresses. It uses early HTTP Basic credential decoding to replace the stale cache, then reuses request-data allocations and triggers their destruction while `$_REQUEST` is constructed. That particular chain requires additional configuration, including `auto_globals_jit=0` and cookies in `request_order`, a suitable heap layout, and an Authorization header larger than nginx's default per-header limit. These are conditions of the demonstrated exploit, not general requirements of the underlying memory-corruption flaw. Other exploitation paths may be possible.
Native command execution has also been demonstrated in Apache mod_php. Besides the same GET/COOKIE chain, Apache has a separate path when request startup fails before the cache is reset. Request cleanup can destroy the forged cache and invoke an attacker-controlled destructor. The demonstrated variant uses a POST that exceeds a configured 2 MB PHP memory limit and requires known runtime addresses, a suitable heap layout, and a larger allowed Authorization header. It does not require cookies or changes to `auto_globals_jit` or `request_order`. ASLR remained enabled during these proofs. A remote ASLR bypass is plausible, although a complete independent bypass has not been demonstrated.
### Impact
An unauthenticated remote attacker may be able to crash PHP workers or execute arbitrary code with their privileges on an affected deployment. The trigger requires a suitable startup diagnostic, PHP error logging to a file, and an early request diagnostic in a fresh worker. Code execution has been demonstrated locally in FPM and Apache mod_php with known addresses and additional configuration assumptions. Successful exploitation does not require application-level code execution or attacker control of `PHP_VALUE` or `PHP_ADMIN_VALUE`.
### Affected versions
The affected code has been present since PHP 5.3.18 and 5.4.8. An earlier form of it was present in PHP 5.2.10, 5.2.12 to 5.2.17 and 5.3.0 to 5.3.8. This is based on code inspection.
### Mitigation
Upgrade to PHP 8.2.36, 8.3.37, 8.4.28, or 8.5.13 when the corresponding release is available. The fix formats error log timestamps in UTC outside a fully initialized active request, avoiding use of request-local timezone state at unsafe points in the lifecycle.
Until an update can be deployed, correct configuration errors and deprecated settings that produce startup diagnostics, then restart the PHP master process and all workers. Sending PHP errors to a suitable logging destination that does not use this file-timestamp path, such as syslog, also avoids the demonstrated trigger. Changing `$_REQUEST` or cookie settings is not a complete mitigation. The demonstrated Apache cleanup path does not require those settings.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 to execute commands with the privileges of the FPM master, which commonly runs as root.
### Details
When `catch_workers_output` is enabled, the FPM master monitors pipes connected to worker stdout and stderr. The epoll registrations store pointers to event structures embedded in the corresponding worker record.
When a worker exits, `fpm_child_close()` attempts to drain its output pipes. If a helper process still holds a pipe's write end open, the read can return `EAGAIN` instead of reaching EOF. In this case, the master closes the pipe's read descriptor without first removing its event or invalidating the descriptor number stored in the worker record. Cleanup of that record is deferred for one second.
An attacker can stop a newly forked sibling after it drops to the pool user but before it closes inherited descriptors. The stopped sibling retains the original pipe readers and epoll descriptor, keeping the original watch alive after the master closes its own descriptors. The delayed cleanup can then use a descriptor number that has already been reused, removing the wrong watch or failing to remove the original one before freeing the worker record. A subsequent write to the old pipe makes epoll return a pointer into the freed record.
The master passes that pointer to `fpm_event_fire()`, which reads and calls the event callback. The demonstrated exploit uses the stale output callback to write through a freed logging buffer, corrupt the allocator's free list, and replace the callback with a function that executes a command. Root command execution was reproduced from a `www-data` worker against unmodified PHP 8.5.12 Docker images on Linux arm64 and x86-64. The exploit is dependent on memory layout and process timing. Curl and OPcache were used to obtain memory addresses for the demonstrated chain; they are not required to trigger the underlying epoll use-after-free.
The affected delayed-cleanup path was introduced in PHP 8.1.20 and 8.2.7. The fix unregisters each stdio event while its original descriptor is still valid, closes the descriptor, and sets the stored descriptor to `-1` so that delayed cleanup cannot act on it again.
### Impact
Exploitation requires local code execution in an FPM worker, an affected pool with `catch_workers_output` enabled, the epoll event backend, and the ability to manipulate worker lifetimes and retain inherited pipe descriptors. A root FPM master permits escalation from the pool user to root. If the master runs as an unprivileged user, successful exploitation is limited to that user's privileges. In a container, this grants the master's container privileges and does not by itself establish a container escape.
The underlying descriptor-lifetime error can also close another worker's reused descriptor, disrupt logging or request handling, cause repeated worker respawns, or crash the master. Common affected configurations include the official PHP-FPM Docker images, which enable worker output capture. The default PHP-FPM setting outside such configurations is `catch_workers_output = no`.
### Affected versions
The affected delayed-cleanup path was introduced by the fix for GH-10461, first released in PHP 8.1.20 and 8.2.7.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary workaround, disable `catch_workers_output` in affected pools. Running the FPM master without root limits the privileges obtainable through this vulnerability, but does not correct the use-after-free. Disabling Curl or OPcache only removes parts of the demonstrated exploit chain and should not be treated as a complete mitigation.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 URL may become slow or unavailable if the response contains a header split across a large number of continuation lines.
### Details
When PHP receives a folded response header, it joins each continuation line to the accumulated header value. The vulnerable implementation allocates a new string and copies the entire value for every line. A response containing many short continuation lines therefore takes disproportionately more time to process as its size grows. PHP performs this work before returning the response body to the application.
This behaviour was introduced by the fix for GHSA-v8xr-gpvj-cx9g (CVE-2025-1217). The new fix accumulates the header in a growing buffer, avoiding a full copy for every continuation line while preserving the existing handling of folded headers.
### Impact
An attacker must control an HTTP response fetched by the application through PHP's built-in HTTP or HTTPS stream wrapper. Enabling `allow_url_fopen` alone does not make an application vulnerable to a remote attack. the attacker must also be able to trigger a suitable outbound request or influence a server that the application already contacts.
Repeated or concurrent requests can keep PHP workers busy and deny service to other users. Testing confirmed that two malicious responses could occupy both workers in a two-worker PHP-FPM pool and temporarily prevent an unrelated request from completing. The demonstrated impact is denial of service through excessive CPU consumption. No confidentiality or integrity impact was observed.
### Affected versions
The affected code was introduced by the fix for GHSA-v8xr-gpvj-cx9g, first released in PHP 8.1.32, 8.2.28, 8.3.19 and 8.4.5. Earlier versions are not affected.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict outbound requests to trusted destinations, including redirect targets. An egress proxy that enforces response-header size and count limits can reject malicious responses before PHP processes them. Request execution limits and PHP-FPM's `request_terminate_timeout` can limit how long workers remain occupied, but do not remove the vulnerable parsing behaviour.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
Fixed: 8.3.29
In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, a heap buffer overflow occurs in array_merge() when the total element count of packed arrays exceeds 32-bit limits or HT_MAX_SIZE, due to an integer overflow in the precomputation of element counts using zend_hash_num_elements(). This may lead to memory corruption or crashes and affect the integrity and availability of the target server.
8.3.29 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
Fixed: 8.3.29
In PHP versions 8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1 when using the PDO PostgreSQL driver with PDO::ATTR_EMULATE_PREPARES enabled, an invalid character sequence (such as \x99) in a prepared statement parameter may cause the quoting function PQescapeStringConn to return NULL, leading to a null pointer dereference in pdo_parse_params() function. This may lead to crashes (segmentation fault) and affect the availability of the target server.
8.3.29 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.32 (excluding)
Fixed: 8.3.32
### 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 name cleanup block unconditionally tries to reset the peer name.
This is triggerable via a failure to validate the peer name or an expired certificate.
As demonstrated by https://github.com/php/php-src/issues/21468 this is triggerable without requiring specially-crafted code, and with a remote server.
### Details
Patch available via https://github.com/php/php-src/pull/21031
### Impact
The impact is a remotely-triggerable DoS bringing the entire fpm process down with all its workers.
### Additional Information
This was first discovered by a hybrid static-dynamic analyzer I'm developing.
8.3.32 is the fixed release named by the matching range and it is published on php.net.
### 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()`, `fopen()` or other stream functions may therefore expose passwords, authentication tokens, request bodies or transferred files to an attacker able to observe the network traffic.
### Details
The stream wrappers recognise URL schemes without regard to case, but the decision to enable TLS checks for a lowercase `s` at a fixed position. A URL that passes an application's case-insensitive HTTPS or FTPS validation can consequently use the unencrypted HTTP or FTP transport.
The HTTP issue also applies to redirect targets. For example, a `307` redirect from a valid HTTPS connection to an uppercase `HTTPS://` URL can cause the preserved POST body and any retained authentication headers to be sent in cleartext. A request can disclose data even if the destination rejects the unexpected plaintext connection.
The fix determines whether TLS is required by comparing the complete scheme case-insensitively. It covers both the HTTP and FTP stream wrappers.
### Impact
An attacker who can observe an affected connection can read the data that the application expected TLS to protect. This can include Basic authentication credentials, bearer tokens, cookies, sensitive POST data, FTP login credentials and file contents. Exploitation requires an affected URL to reach a stream wrapper, either directly or through a redirect, and access to the resulting network traffic. The impact depends on the data being transferred. disclosure of credentials or other highly sensitive data can have a serious confidentiality impact.
### Affected versions
Mixed-case URLs passed by an application have been affected since PHP 5.2.0, and redirects to a mixed-case URL since PHP 4.3.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary workaround, ensure that HTTPS and FTPS URL schemes are written in lowercase before passing them to a stream function. If HTTP redirects are allowed, disable automatic redirects and validate and normalise every redirect target before following it. Normalising only the initial URL does not protect requests that follow redirects automatically.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.33 (excluding); 8.3.0 (including) to 8.3.33 (excluding)
Fixed: 8.3.33
Improper escaping of backslashes in attacker-provided parameters would allow for trivial SQL injection in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.
8.3.33 is the fixed release named by the matching range and it is published on php.net.
### 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 SHA-256 and replaces the OpenSSL signature with a matching digest. Applications that execute the archive may then run attacker-controlled PHP code.
### Details
PHP stores an OpenSSL signature in the Phar archive, but obtains the verification key from a separate `<archive>.pubkey` file. For the native phar format, the archive controls the signature type through the four bytes before the `GBMB` magic. Tar- and zip-based phars control it through the first four bytes of `.phar/signature.bin`.
The verifier treats this type as authoritative when selecting the verification method. Only the OpenSSL signature types read and use `<archive>.pubkey`. MD5, SHA-1, SHA-256 and SHA-512 compare a digest that anyone can recompute. An attacker can therefore replace the archive contents and OpenSSL signature, select SHA-256 and satisfy `phar.require_hash=1` without possession of the private key. The trusted public key is not consulted.
Native, tar- and zip-based executable phars are affected. Explicitly signed tar- and zip-based `PharData` archives use the same verification path. This behaviour has been present since OpenSSL Phar signatures were introduced in PHP 5.3.0. The fix rejects a non-OpenSSL signature when an adjacent `.pubkey` file indicates that OpenSSL verification is expected. Archives without such a sidecar retain their existing signature behaviour.
### Impact
Exploitation requires the application to rely on an OpenSSL-signed Phar with a public key installed through a trusted channel, an attacker able to alter or replace the archive but not that public key, and the application subsequently loading the archive. Executing the modified archive can run attacker-controlled PHP code with the privileges of the affected process, compromising its data and availability.
The `.pubkey` file is PHP's external trust anchor and is not embedded or pinned in the Phar. If an attacker can also remove or replace it, they can already provide an archive signed with their own OpenSSL key. the fix does not protect that deployment. `phar.require_hash` alone provides corruption detection and does not authenticate keyless signatures.
### Affected versions
The affected code has been present since PHP 5.3.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Obtain the publisher's public key through an authenticated channel and install it as `<archive>.pubkey` with permissions that prevent the archive update or download path from removing or replacing it. If the key cannot be protected independently, verify the archive using another mechanism that pins a trusted key before PHP loads it.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the PDO Firebird driver improperly handles NUL bytes when preparing SQL queries. During token-by-token query construction, a string token containing a NUL byte is copied via strncat(), which stops at the NUL byte, dropping the closing quote and causing subsequent SQL tokens to be interpreted as part of the string. This allows SQL injection when attacker-controlled values are quoted via PDO::quote() and embedded in SQL statements.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, 8.5.* before 8.5.6, due to improper sanitation of user data, it allows an attacker to compose an URL, which will cause the target to execute arbitrary JavaScript code (XSS) on the target's machine when the target is viewing the PHP-FPM status page.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
### 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 attacker may be able to crash the PHP process, expose process memory, or corrupt memory.
This affects `php-cgi` in both CGI and FastCGI mode when `cgi.fix_pathinfo=1`, the default. PHP-FPM and PHP running as an Apache module are not affected.
### Details
The problem occurs when PHP removes a trailing path from `SCRIPT_FILENAME`, or from `PATH_TRANSLATED` in a redirected CGI request, but the supplied `PATH_INFO` is shorter than the path being removed. A present but empty `PATH_INFO` can also trigger the problem. This requires particular web server mappings; using CGI, FastCGI, or URL rewriting alone is not enough.
In `init_request_info()`, PHP calculates the replacement `PATH_INFO` by subtracting the length of the removed suffix from the end of the supplied value. If the suffix is longer, the resulting pointer lies before the `PATH_INFO` buffer. Subsequent path correction can read, write and copy memory through this invalid pointer. The fix checks the lengths before deriving the pointer and skips the rewrite when no valid replacement exists.
#### Apache CGI example
A legitimate configuration that can produce these values is a legacy Apache CGI installation using `Action`, combined with a rewrite to an absolute filesystem path. For example, this virtual-host configuration routes a short public URL to a longer route handled by an existing `/srv/site/index.php`:
```apache
DocumentRoot "/srv/site"
ScriptAlias /cgi-bin/php "/usr/local/bin/php-cgi"
AddHandler php-script .php
Action php-script /cgi-bin/php
<Directory "/srv/site">
AcceptPathInfo On
</Directory>
RewriteEngine On
RewriteRule "^/news/(.*)$" "/srv/site/index.php/content/articles/$1" [L]
```
This fragment assumes an otherwise working Apache CGI installation with the required modules and access permissions. The `Action` arrangement is described in the [PHP CGI installation documentation](https://www.php.net/manual/en/security.cgi-bin.force-redirect.php).
A request for `/news/x` can then reach PHP with:
```text
PATH_INFO = /news/x
PATH_TRANSLATED = /srv/site/index.php/content/articles/x
REDIRECT_URL = /news/x
```
PHP finds the existing `index.php`, but the remaining `/content/articles/x` is longer than the original `/news/x`. Attempting to reconcile these values triggers the invalid memory access. This was reproduced through an actual HTTP request with Apache 2.4.58 and an unmodified PHP CGI binary. An `Alias` that maps `/news` to `/srv/site/index.php/content/articles` produced the same result.
The ordinary `Action` setup, a conventional rewrite to `index.php`, and a rewrite to the URL `/index.php/content/articles/x` did not trigger the issue in these tests. The vulnerable example is a valid routing configuration, but it does not imply that typical Apache PHP installations are affected.
#### Other FastCGI front ends
A front end can also expose the issue if it builds `SCRIPT_FILENAME` from an unsplit request path while supplying a shorter or empty `PATH_INFO`. Review custom FastCGI parameter mappings and configurations that forward requests without checking that the selected script exists. For nginx, this includes checking how [`fastcgi_split_path_info`](https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info), `SCRIPT_FILENAME`, `PATH_INFO`, and any `try_files` check work together. A correctly split and validated script path avoids this form of the issue.
An exposed `php-cgi` FastCGI listener also allows an untrusted client to supply these parameters directly. PHP-FPM remains unaffected.
### Impact
- **Denial of service:** a single unauthenticated request can crash the `php-cgi` process handling it. Crashes were reproduced on default, non-debug builds of PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12.
- **Information disclosure:** unrelated memory can appear in `$_SERVER['PATH_INFO']` or `PATH_TRANSLATED`. This may include other request parameters or values added by the front end. Disclosure to the attacker depends on the application returning these values or making them available through logs or other output.
- **Memory corruption:** PHP can overwrite memory during path correction. Code execution has been claimed, but has not been confirmed.
### Affected versions
The out-of-bounds read has been present since PHP 4.3.0 and the out-of-bounds write since PHP 5.2.4. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a workaround, set `cgi.fix_pathinfo=0` in the configuration used by `php-cgi`, and check that the application's routing still works.
Alternatively, correct the web server mapping so that the path PHP uses identifies the existing script and any additional path information is consistent. For the Apache example above, rewriting to the URL instead of the absolute filesystem path avoided the issue:
```apache
RewriteRule "^/news/(.*)$" "/index.php/content/articles/$1" [PT,L]
```
See Apache's documentation for the [`PT` rewrite flag](https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_pt). Other rewrites and aliases can affect the result, so verify the complete configuration. Direct access to a FastCGI listener should also be restricted to trusted front ends.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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 they appear as a component of a path. An attacker-controlled filename therefore reaches CreateFileW() and opens a device instead of the regular file the application expected, which can block or hang the request and exhaust worker processes.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
Prerequisites: NVD configuration also requires cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding); 8.3.0 (including) to 8.3.29 (excluding)
Fixed: 8.3.29
In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.
8.3.29 is the fixed release named by the matching range and it is published on php.net.
### 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 exposed SOAP endpoint can crash the PHP process handling it. Applications that load attacker-controlled WSDL or imported schema documents can also be affected.
### Details
While cleaning up a parsed XML document, PHP frees the DTD even though attribute values can still refer to content it owns. Processing those attributes can then access freed memory. Removing the DTD also bypasses the SOAP server's normal rejection of documents containing a DTD.
The fix keeps the DTD alive for as long as the XML document needs it and restores the existing SOAP DTD check. The issue predates the changes made for [CVE-2026-91765](https://github.com/php/php-src/security/advisories/GHSA-rgrp-mwpx-f6rm) and affects earlier releases in all supported PHP branches.
### Impact
Exploitation requires the SOAP extension and an application that processes attacker-controlled SOAP XML, WSDL or schema content. Authentication does not protect an endpoint if the application parses the SOAP request before authenticating it.
A crafted document can crash the PHP worker or process, and repeated requests can disrupt service. The original report also described corrupted type information after freed memory was reused. Disclosure of sensitive process memory and arbitrary code execution have not been confirmed.
### Affected versions
SOAP server requests have been affected since PHP 5.6.0. The same cleanup has applied to WSDL and schema documents since PHP 5.0.0, but loading an untrusted WSDL or schema is not considered a security issue. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict access to affected SOAP endpoints or disable them where practical. Load WSDL and imported schemas only from trusted, controlled sources.
If untrusted SOAP requests must be accepted, reject documents containing a DTD before they reach the SOAP extension. Any such filter must correctly handle the XML encodings and request-body transformations accepted by the application. A simple text search is not a complete mitigation.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
### 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 decoded array to contain an unexpected integer key. The value reaches the attacker if the application returns or otherwise exposes that array.
### Details
An empty, whitespace-only or non-numeric `arraySize` can describe no dimensions. PHP nevertheless reads the first array position, which has not been initialized. With PHP's default memory allocator, the read falls within a small allocated block and can return four bytes of unrelated heap data. That value is then used as an array key. When the default allocator is disabled, AddressSanitizer reports an out-of-bounds heap read.
The fix treats a size containing no dimensions as a one-dimensional array. It also covers array dimensions read from WSDL definitions. The vulnerable behaviour is present in all supported PHP branches.
### Impact
An unauthenticated client can trigger the issue through a SOAP endpoint that accepts the crafted input. A malicious or compromised SOAP server can also supply an affected response to `SoapClient`.
The demonstrated impact is limited information disclosure when the application exposes the decoded array. Simply accepting the request does not guarantee that the value is returned to the attacker. The demonstrated case does not crash or corrupt memory with PHP's default allocator. Arbitrary code execution has not been demonstrated.
### Affected versions
The affected code has been present since PHP 5.0.0. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. Until then, restrict access to affected SOAP endpoints and use trusted SOAP services and WSDL definitions.
Where requests or responses can be validated before they reach the SOAP extension, reject encoded arrays whose `arraySize` contains no valid dimension. Avoid returning unvalidated decoded arrays to untrusted clients. These measures reduce exposure but do not replace the parser fix.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, some functions, including urldecode(), pass signed char to ctype functions (like isxdigit()). On the systems with default signed char and optimized table-lookup ctype functions - such as NetBSD - this can lead to accessing array with negative offset, which can trigger a denial of service.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, when SoapServer is configured with SOAP_PERSISTENCE_SESSION, the handler object is persisted across requests via session storage. However, in the case SOAP requests results in an error, the persistance is handled incorrectly, resulting in freeing the object while keeping a pointer to it, which may lead to use-after-free. This may lead to memory corruption, information disclosure, or process crashes, with confidentiality, integrity, and availability impact on the vulnerable system.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the metaphone() function in ext/standard/metaphone.c uses a signed int variable to track the current position within the input string. If a string longer than 2,147,483,647 bytes is passed, a signed integer overflow occurs, resulting in undefined behavior. This can lead to an out-of-bounds read, causing a segmentation fault or access to unrelated memory, and may affect the availability of the PHP process.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
Prerequisites: NVD configuration also requires cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.33 (excluding); 8.3.0 (including) to 8.3.33 (excluding)
Fixed: 8.3.33
Circular symbolic links in phar archives could lead to unbounded recursion, exhausting the C stack and crashing the PHP process, in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.
8.3.33 is the fixed release named by the matching range and it is published on php.net.
### 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 browser of an operator who later views the full HTML status page. The attacker does not need access to the status endpoint.
### Details
The earlier fix for [CVE-2026-6735](https://github.com/php/php-src/security/advisories/GHSA-7qg2-v9fj-4mwv) escaped the request URI and query string, but left the request method, authentication user and script filename unescaped in the per-process status output. These values are stored in the PHP-FPM scoreboard and later inserted into HTML, XML and JSON responses without the encoding required by each format.
The most direct attack uses the username from an HTTP Basic authentication header. When the front end forwards this header to PHP-FPM, PHP can decode and store the supplied username even if the application does not use Basic authentication. The scoreboard retains up to 31 bytes of the username, which is enough for an HTML element with a JavaScript event handler. A request to an ordinary PHP script in the pool can therefore plant a payload that runs when another user opens the status endpoint with `full&html`. The value remains in that worker's scoreboard entry until it is replaced by a later request.
The script filename provides another injection path when an attacker can influence the filename recorded by FPM, including configurations using `cgi.fix_pathinfo=0`. Ordinary web servers restrict the characters accepted in request methods, so the request-method field does not by itself establish the same HTTP attack path. Unescaped quotes or markup in these fields can also corrupt JSON or XML status responses and interfere with monitoring consumers.
The fix applies a common, format-appropriate escaping helper to the request method, request URI, query string, authentication user and script filename before rendering the full status response. A separate client-side injection issue in the bundled `status.html` dashboard is tracked in [GHSA-q8fm-p8fx-h6r6](https://github.com/php/php-src/security/advisories/GHSA-q8fm-p8fx-h6r6).
### Impact
Exploitation requires an enabled PHP-FPM status endpoint, a request path through which attacker-controlled metadata reaches the affected pool, and a user or tool that renders the full status data as HTML. For the authentication-user attack, the front end must forward the Basic authentication header to FPM. Restricting access to the status endpoint does not prevent an attacker from planting the payload through a separate application request.
Successful exploitation runs JavaScript in the status page's origin. It can expose request URIs, query strings and other information shown on the status page. If the page shares an origin with the application, the script can also act with the viewing user's session and read data available to that origin, including cookies that are not protected by `HttpOnly`. Malformed XML or JSON can additionally disrupt status parsing and monitoring.
### Affected versions
The affected status output has been present since PHP 5.3.9. This is based on code inspection.
### Mitigation
Upgrade to the fixed release for your PHP branch when it becomes available. As a temporary workaround, disable the PHP-FPM status endpoint or prevent use of its full HTML output. If full status data is required, use a consumer that validates the response and treats all field values as untrusted text. Restricting status access to trusted operators remains useful, but is not a complete mitigation because those operators can receive payloads planted by other clients.
8.3.37 is the fixed release named by the matching range and it is published on php.net.
8.3.0 (including) to 8.3.32 (excluding); PHP 8.3 only, 8.3.0 (including) to 8.3.32 (excluding)
Fixed: 8.3.32
In PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before 8.4.23, 8.5.* before 8.5.8, the AES-WRAP-PAD algorithm implementation in OpenSSL extension contains a buffer allocation flaw. The output buffer for the AES key-wrap-with-padding operation is sized from the plaintext length without accounting for RFC 5649 expansion. This may cause OpenSSL to write beyond allocated memory, corrupting heap metadata and triggering application abort.
8.3.32 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
### 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` is encoded or passed through depends on whatever happened to be on the stack.
### Details
The table is filled with `memset(tmp, 1, sizeof(tmp) - 1)`, which leaves `tmp[255]` untouched:
https://github.com/php/php-src/blob/php-8.5.9/ext/filter/sanitizing_filters.c#L73
The filter then consults `tmp[*s]` for every input byte, so for `0xFF` the decision comes from uninitialised stack memory. Every other byte is handled deterministically.
The fix changes the `memset()` length to `sizeof(tmp)` so the whole table is initialised.
### PoC
```php
<?php
$out = filter_var("\xff\xfeabc", FILTER_SANITIZE_ENCODED);
echo "in : ", bin2hex("\xff\xfeabc"), "\n";
echo "out: ", bin2hex($out), "\n";
```
```
in : fffe616263
out: ff254645616263
```
`0xFE` is percent-encoded as `%FE` while `0xFF` is passed through raw, showing that `tmp[255]` was read uninitialised.
### Impact
The impact is low. There is no crash and no memory corruption; the only effect is that the `0xFF` byte is sanitised inconsistently, depending on uninitialised stack contents. A downstream consumer that relies on `FILTER_SANITIZE_ENCODED` producing fully percent-encoded output could in principle be affected as part of a longer chain, but the filter provides no such guarantee on its own.
This issue was fixed publicly in 8.4.25 and 8.5.10 before it was recognised as security relevant, and is backported here to the branches that receive security fixes only.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); 8.3.0 (including) to 8.3.35 (excluding)
Fixed: 8.3.35
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.
8.3.35 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, when a SOAP server has a typemap configured, the decoding process contains a mistake which checks the wrong variable in case of missing value element. This leads to dereferences a NULL pointer, causing a segmentation fault. This allows a remote unauthenticated attacker to crash the PHP SOAP server process, resulting in denial of service.
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.31 (excluding); 8.3.0 (including) to 8.3.31 (excluding)
Fixed: 8.3.31
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().
8.3.31 is the fixed release named by the matching range and it is published on php.net.
PHP 8.3 only, 8.3.0 (including) to 8.3.29 (excluding)
Fixed: 8.3.29
### Summary
As GHSA-3cr5-j632-f35r, same null termination is occuring
### Details
dns_get_record() and other DNS functions don't have any null contain check, leads potential SSRF or unexpected behavior.
### PoC
```php
<?php
var_dump(dns_get_record("php.net\0aa"));
```
Result: DNS records of `php.net`
Expect: Fails to call
### Security impact
(Even though it's too low but,) Probability of SSRF
8.3.29 is the fixed release named by the matching range and it is published on php.net.
Records that name the PHP runtime but publish no usable version range were excluded instead of guessed.
GREEN means no matching CVE was confirmed in the data that could be checked, and the branch is still supported. It does not mean the installation is secure.