Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 12h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 12h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d
🛡️
ACyber Sentinel Security Assessment Team
← Back to feed
⚡ Intelligence Report

PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution

PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution

The PHP Foundation has released security updates to address multiple critical security flaws that could be exploited to achieve remote code execution on affected deployments, including CVE-2026-115560.

The release of the patch follows an advance notice in which the project maintainers alerted users to multiple critical vulnerabilities affecting all supported PHP versions under specific conditions, including non-default configuration or uncommon setups.

At a high level, successful exploitation of the defects could pave the way for remote code execution, session corruption, denial-of-service, memory corruption, or local privilege escalation.

The list of vulnerabilities is as follows -

  • CVE-2026-115560 (CVSS score: 9.2) - An improper input validation vulnerability that could result in remote code execution, file modification, session corruption, or denial-of-service. (Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0)
  • CVE-2026-129182 (CVSS score: 9.2) - A use-after-free vulnerability that could result in memory corruption and possible full remote code execution, as in the case of CVE-2026-109619. (Fixed in PHP 8.5.13, 8.6.0)
  • CVE-2026-126714 (CVSS score: 9.2) - A Time-of-check Time-of-use (TOCTOU) vulnerability that could result in the execution of arbitrary code with the privileges of the PHP worker. Successful exploitation requires an attacker's influence over the session data, an interruption at a useful point in the write, and an application with a suitable deserialization gadget chain. (Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0)
  • CVE-2026-129289 (CVSS score: 9.2) - An inconsistent interpretation of HTTP requests vulnerability that could result in execution of attacker-controlled PHP code as the worker without another user's interaction or a non-default PHP configuration. Successful exploitation requires a front end that enables persistent backend connections and an application path that opens "php://input" without reading it fully, such as nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI applications that retain backend connections, and LSAPI. (Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0)
  • CVE-2026-129474 (CVSS score: 9.2) - A use-after-free vulnerability that could result in remote code execution on PHP 8.5 and later. Successful exploitation depends on the application and requires control over enough request data to influence memory allocation, a reachable magic method call, and a fatal error at the relevant point. (Fixed in PHP 8.5.13, 8.6.0)
  • CVE-2026-129481 (CVSS score: 9.2) - A use-after-free vulnerability that could cause an application's session cleanup to fail and potentially corrupt memory, crash a reused PHP worker, or potentially allow remote code execution. (Fixed in PHP 8.3.37, 8.4.28, 8.5.13, 8.6.0)
  • CVE-2026-129496 (CVSS score: 9.2) - A use-after-free vulnerability that could allow an unauthenticated remote attacker to crash PHP workers or execute arbitrary code with their privileges on an affected deployment. (Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0)
  • CVE-2026-129291 (CVSS score: 8.8) - A use-after-free vulnerability that could result in local privilege escalation. Successful 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. (Fixed in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0)

Depthfirst, which has codenamed CVE-2026-126714 "phpAfterShell," has described it as a critical flaw that can enable a remote attacker to run arbitrary code on affected servers.

"If a pwrite()/ftruncate() update is interrupted, PHP may leave behind a malformed session file that is later loaded by session_start(), yielding an arbitrary deserialization primitive," Depthfirst said. "Chained with another of our PHP-native deserialization-to-RCE findings, this leads directly to remote code execution."

Put differently, the vulnerability turns an interrupted file write into a potential remote code execution primitive by manipulating how PHP writes session data to disk, causing it to interpret previously harmless data as executable object data.

It then exploits the unexpected session state where the PHP worker either dies while the write process is underway, leaving a partially updated file, or dies after the write is complete, but before content from the previous session is removed. Both scenarios lead to a mixture of two different session states.

"Depending on where the interruption happens, part of the new Session may already have been written while bytes from the previous Session remain on disk," security researcher Yuhang Wu said. "The result can be a Session file containing the prefix of the new serialized data and the tail of the old one."

"By carefully choosing the length fields in the new prefix, an attacker can make PHP's Session decoder interpret leftover bytes that were previously just part of an ordinary string as separate Session entries and serialized objects. Nothing needs to be deserialized during the upload-progress callback itself. The attacker only needs to leave the right bytes on disk and wait for the application to call session_start(), at which point PHP reads the modified Session and deserializes those objects."

Once the prefix of one valid session is spliced with the tail of a replacement session, a subsequent session treats the corrupted data as a legitimate server-side state. This, in turn, causes PHP to interpret it as a "different, valid Session" and ultimately enable remote code execution by chaining it with a memory-corruption in a PHP-native class.

It affects any application that runs an affected PHP version with file-based sessions. If immediate patching is not possible, it's advised to turn off session upload progress.

Patches for the flaws are available in the following versions -

  • PHP 8.2.36
  • PHP 8.3.37
  • PHP 8.4.28
  • PHP 8.5.13
  • PHP 8.6.0

Users who are using existing 8.2.x, 8.3.x, 8.4.x, and 8.5.x versions of PHP are advised to update to the latest version for optimal protection.

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.

Referenced Vulnerabilities

CVE-2026-129496 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129496 - Timezone cache use-after-free can lead to remote code execution
Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for example for an invalid date.timezone value or a session configuration warning, causes the timezone cache to be allocated in startup memory that is freed while a reference to it is kept. A diagnostic raised early in the first request of a worker, such as the max_input_vars warning, then accesses the freed cache. On such a deployment an unauthenticated remote attacker can crash PHP-FPM, Apache mod_php or CGI workers with a crafted request. Arbitrary code execution may be possible and has been demonstrated with known memory addresses. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129481 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129481 - Use-after-free after interrupted session shutdown
Use-after-free after interrupted session shutdown. The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache. This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129474 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129474 - Use-after-free in magic method backtraces can lead to remote code execution
Use-after-free in magic method backtraces can lead to remote code execution. When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-129291 CVSS 8.8 HIGH Awaiting Analysis
CVE-2026-129291 - PHP-FPM epoll use-after-free can lead to local privilege escalation
PHP-FPM epoll use-after-free can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master can close a worker's output pipe in fpm_child_close() without removing the associated event, and the delayed cleanup can free the worker record while its epoll registration is still active. A later event is then dispatched through a pointer into freed memory. A local attacker who can execute PHP code in an FPM worker can crash the master or execute code with its privileges, commonly root. catch_workers_output is disabled by default but enabled in the official PHP-FPM Docker images. This issue affects PHP versions from 8.1.20 through 8.1.34, from 8.2.7 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129289 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129289 - PHP-FPM request smuggling through an unread HTTP request body
PHP-FPM request smuggling through an unread HTTP request body. PHP does not discard the unread part of an HTTP request body at request shutdown when the application has opened php://input without reading it to the end. When the front end reuses backend connections, which is not the default in nginx or Apache (for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse the leftover bytes as a new FastCGI request. An unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code. With LSAPI, subsequent requests on the connection can be disrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129182 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129182 - Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-126714 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-126714 - Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-115560 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-115560 - Session serializer mismatch can lead to remote code execution
Session serializer mismatch can lead to remote code execution. Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-118383 CVSS 10 CRITICAL Analyzed
CVE-2026-118383 - Pre-authentication use-after-free in MongoDB Server replica set primary catch-up
A use-after-free in the replication component of MongoDB Server can occur when a newly elected replica set primary completes catch-up. The condition can be caused by requests that do not require authentication, and may result in the server terminating unexpectedly or, under certain conditions, arbitrary code execution in the context of the server process. Replica set members are affected, including the shard and config server replica set members of sharded clusters; standalone mongod instances are not.
CVE-2026-109619 CVSS 9.8 CRITICAL Analyzed
CVE-2026-109619 - PHP Stale Internal Request-State Vulnerability - [Actively Exploited]
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).