PHP security came into focus in October and November 2026 following two significant waves of vulnerabilities affecting the widely used server-side programming language.

The first wave, known as PHP2Shell, involved two critical vulnerabilities that could allow unauthenticated attackers to execute malicious code on affected servers. On 19 November 2026, a further security release addressed 17 vulnerabilities, including seven rated Critical.

If your website or business applications rely on PHP, these developments are worth paying attention to. They highlight how weaknesses in memory management, session handling and server communication can create opportunities for attackers.

Keeping your software updated is essential, but it is equally important to understand which PHP versions your applications are running and whether your server configurations introduce additional risks.

October 2026: The PHP2Shell Security Vulnerabilities

In October 2026, two critical vulnerabilities were identified in PHP:

  • CVE-2026-109618: A memory corruption vulnerability involving how PHP handles out-of-memory errors.
  • CVE-2026-109619: A vulnerability involving stale internal state that could remain in memory between requests.

Both vulnerabilities received a CVSS score of 9.2 and could allow unauthenticated attackers to achieve remote code execution under affected conditions.

How Did PHP2Shell Work?

PHP processes requests using memory allocated to handle individual operations. When a request finishes, PHP needs to clean up its internal data before processing another request.

The October vulnerabilities exposed two weaknesses in this process.

1. Memory corruption following an out-of-memory error

When PHP runs out of available memory while processing a request, it attempts to stop the operation and clean up. However, certain execution paths could interrupt this process while internal request data was only partially initialised.

During cleanup, PHP could then treat invalid internal data as valid. This created an opportunity for memory corruption and potentially remote code execution.

2. Stale internal state between requests

PHP workers can process multiple requests during their lifetime. Before handling another request, PHP needs to reset internal information associated with the previous one.

The second vulnerability involved request-related information remaining in memory after the memory it referred to had been released. A subsequent request handled by the same worker could interact with this outdated information, potentially resulting in memory corruption and remote code execution.

Why Were These Vulnerabilities Serious?

The main concern was that attackers did not necessarily need an existing account or direct access to a server to exploit the vulnerabilities.

An exposed PHP application could provide an entry point for an attacker to compromise the affected PHP process, potentially execute malicious code or gain access to sensitive information.

The PHP security releases on 21 October addressed both vulnerabilities in the affected supported branches. However, further security issues were identified in November.

November 2026: A Further Wave of PHP Security Vulnerabilities

On 19 November 2026, PHP released another major security update addressing 17 vulnerabilities, including seven rated Critical.

The vulnerabilities affected different parts of PHP, including PHP-FPM, session handling and memory management.

Some could allow remote code execution under specific conditions, while others could cause memory corruption, worker crashes or security weaknesses in application sessions.

The Most Important November Vulnerabilities

1. PHP-FPM Request Smuggling – CVE-2026-129289

This vulnerability affected how PHP-FPM handles requests when web servers reuse persistent backend connections.

Under certain configurations, PHP-FPM could leave unread data from one HTTP request in a connection. When that connection was reused, the remaining data could be interpreted as a separate FastCGI request.

An attacker could potentially exploit this behaviour to bypass front-end web server controls and execute unauthorised PHP code with the permissions of the affected worker.

The risk depends on the server configuration and how the application handles incoming request data.

2. Session Handling and Deserialisation Vulnerabilities – CVE-2026-126714 and CVE-2026-115560

These vulnerabilities involved how PHP stores and processes session information.

CVE-2026-126714, known as phpAfterShell, affected PHP’s default file-based session handler.

When a session file update is interrupted at a particular point, the file can contain a mixture of new and previously stored data. When PHP reads the session again, it may interpret this mixed data as serialised PHP objects.

Under specific conditions, an attacker who can influence session data may exploit this behaviour to achieve remote code execution.

CVE-2026-115560 involved a mismatch between session serialisation handlers. This could allow attacker-controlled session data to be interpreted incorrectly when different serialisation handlers are used across application components.

Both vulnerabilities highlight the importance of reviewing how applications store, share and process session information.

3. Memory Management and Use-After-Free Vulnerabilities – CVE-2026-129474, CVE-2026-129481 and CVE-2026-129182

Several November vulnerabilities involved PHP continuing to reference memory after it had been released.

These issues affected different parts of PHP’s request processing, session shutdown and fatal error handling.

Under specific configurations, PHP could attempt to access outdated memory references. Depending on the vulnerability, this could cause worker crashes, memory corruption or potentially allow code execution.

Not every vulnerability in this group has demonstrated remote code execution, so the impact depends on the individual issue and the affected configuration.

4. Additional Memory Management Vulnerability – CVE-2026-129496

This vulnerability involved PHP’s timezone cache and diagnostic logging.

Under certain configurations, PHP could retain a reference to memory that had already been released. A later diagnostic operation could access that memory, potentially causing a worker to crash or creating an opportunity for code execution.

Why the November Update Matters

The November vulnerabilities introduced additional security risks that were not fully addressed by the October PHP2Shell updates.

In particular, phpAfterShell and the PHP-FPM request-smuggling vulnerability required separate fixes.

If you updated PHP in October, do not assume that your systems are automatically protected against the November issues. Check the latest security releases and verify that every affected PHP installation has been updated.

How to Protect Your PHP Environment

If your website or business applications rely on PHP, take the following steps to review your exposure and strengthen your server security.

1. Check Your PHP Version and Install the Latest Security Updates

Start by identifying every server, website and application running PHP. Include production servers, test environments, containers and third-party applications that may have their own PHP installations.

The November 2026 security releases include the following fixed versions:

PHP branch Fixed version
PHP 8.2 8.2.36
PHP 8.3 8.3.37
PHP 8.4 8.4.28
PHP 8.5 8.5.13
PHP 8.6 8.6.0

Upgrade to the appropriate fixed release or a later security release.

If you use a vendor-managed PHP package, check its security advisory as well. Some Linux distributions and long-term support providers backport security fixes without changing the main PHP version number.

PHP 8.1 and older versions no longer receive regular security updates directly from the PHP project. If you are using these versions, check whether your provider supplies backported security fixes and plan to move to a supported version.

2. Confirm That Your Website Is Running the Updated PHP Version

Do not rely solely on the PHP version displayed in your command-line terminal.

Your website may use a different PHP installation through PHP-FPM, Apache or another server configuration.

Check the PHP version handling live website requests, review the active PHP-FPM workers and confirm that the relevant services have been restarted after the update.

Also check containers and other environments where PHP may be installed separately.

3. Review Your Web Server and PHP-FPM Configuration

If your server uses PHP-FPM, review how your web server manages connections between requests.

Pay particular attention to persistent FastCGI connection reuse, including:

  • nginx configurations using fastcgi_keep_conn.
  • Apache configurations using mod_proxy_fcgi with enablereuse.
  • Other reverse proxies or services that reuse backend FastCGI connections.

Also review whether your applications open php://input without reading the complete request body.

These conditions are relevant to CVE-2026-129289. Apply the appropriate PHP security update rather than relying on configuration changes alone.

4. Review Your PHP Session Settings

Session information can contain data used to maintain user logins and application activity. Incorrect handling can create security risks.

Review the following settings and application behaviour:

  • Check whether session upload progress is required. If it is not needed, disable session.upload_progress.enabled as a precaution against relevant session-related attack paths.
  • Check whether applications sharing session storage use consistent session.serialize_handler settings.
  • Review application code for changes to session serialisation settings at runtime.
  • Check how session files are stored, accessed and protected.

Remember that disabling session upload progress is not a complete fix for phpAfterShell. Updating PHP to a fixed release remains essential.

5. Review Your PHP-FPM Permissions and Server Access

Check which permissions your PHP applications and worker processes have.

Review PHP-FPM pool configurations, file permissions and access to sensitive directories. Avoid giving application workers unnecessary administrative or root-level privileges.

Also review diagnostic and error-logging configurations, particularly if your applications use custom PHP settings.

For PHP 8.5 deployments, check the zend.exception_ignore_args setting as part of reviewing the relevant fatal error backtrace vulnerability. The production configuration default helps block the demonstrated attack path, but it should not replace the security update.

6. Check for Signs of an Earlier Security Breach

Installing a security update does not automatically remove malicious files or undo damage caused by an earlier attack.

If your PHP environment was exposed before patching, review it for:

  • Unexpected changes to website files or application code.
  • Unfamiliar administrator accounts.
  • Suspicious scheduled tasks or background processes.
  • Unusual outbound network connections.
  • Unexpected activity in PHP-FPM and server logs.

Investigate suspicious activity before assuming that your environment is secure simply because the latest updates have been installed.

If you identify signs of compromise, follow an appropriate incident response process to investigate, contain and recover the affected systems.

What These PHP Security Incidents Mean for You

The October and November PHP vulnerabilities demonstrate how weaknesses in widely used software can affect websites, applications and the systems businesses depend on every day.

A compromised server can put sensitive information, customer data and business operations at risk.

These incidents also highlight why security cannot rely on occasional software updates alone. You need visibility into the technologies your business uses, an understanding of how they are configured and a process for identifying and addressing vulnerabilities.

Regular vulnerability assessments, timely patch management and appropriate server monitoring can help you identify weaknesses before they develop into more serious security incidents.

If your business relies on PHP-powered websites or applications, reviewing these security updates is a practical starting point.

Need help understanding your cyber security risks?

Virtual Edge helps UK businesses identify security weaknesses, prioritise improvements and strengthen their cyber resilience through practical security assessments and ongoing support.

Our approach focuses on clear recommendations and practical actions, helping you understand where your risks are and what to do next.