Global | EN

PHP2Shell vulnerability: How organisations should respond

The PHP2Shell can enable remote code execution on affected PHP servers. Learn the risks, patches and steps to strengthen cyber resilience.

Key facts about the PHP2Shell vulnerability

  • Two critical PHP vulnerabilities

PHP2Shell refers to two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, affecting PHP runtime behaviour.

  • Remote code execution is possible

The vulnerabilities can create memory-corruption conditions that could allow an unauthenticated remote attacker to execute arbitrary code on an affected server.

  • The risk exists at runtime level

PHP2Shell affects PHP's request-processing and memory-management logic rather than a specific PHP application or framework.

  • PHP2Shell patches are available

Fixed PHP releases include versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Organisations using older or vendor-maintained builds should confirm whether the relevant security fixes have been backported.

  • Patching alone may not be enough

Organisations should assess whether exploitation occurred before remediation and verify that corrected PHP versions are running throughout their environment.

What is the PHP2Shell vulnerability?

PHP2Shell refers to two critical PHP vulnerabilities that can potentially enable remote code execution. CVE-2026-109618 and CVE-2026-109619 involve PHP request processing, error handling and memory management. 

The issue is particularly significant because it exists below the application layer. Security measures built into an individual PHP application or framework may therefore not be sufficient to prevent exploitation of the vulnerable runtime.

The two vulnerabilities involve different conditions:

  • CVE-2026-109618: During a memory-allocation failure, PHP's internal request data may remain only partially initialised. Subsequent clean-up can process this data incorrectly, potentially creating a memory-corruption condition that can lead to remote code execution.

  • CVE-2026-109619: Certain error-handling and clean-up processes can leave PHP's global state referencing request memory that has already been released. If that stale reference is subsequently used, another memory-corruption condition and potential path to remote code execution can arise.

 

The specific exploitation path depends on factors including the PHP build, server configuration and runtime environment. Running a vulnerable PHP version indicates potential exposure, but does not by itself prove that the system has been compromised.

Why does PHP2Shell present a serious security risk?

Successful exploitation of the PHP2Shell vulnerability could allow an attacker to execute code with the privileges assigned to the affected PHP process. Depending on the system configuration and security controls, consequences could include:

  • unauthorised access to application data, credentials or configuration files;

  • deployment of web shells or other persistence mechanisms;

  • access to application-to-database connections or internal services;

  • data theft;

  • service disruption; and

  • broader compromise of the affected server or connected environment.

  

The actual impact varies according to factors such as PHP process privileges, network access, workload isolation and application architecture.

Because PHP2Shell can potentially be exploited remotely without authentication, organisations should consider affected internet-facing and business-critical systems a priority.

Frequently asked questions (FAQs)

What is the PHP2Shell vulnerability?
PHP2Shell refers to two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619. They can cause memory corruption within the PHP runtime and potentially allow unauthenticated remote code execution.
Why is PHP2Shell considered a critical remote code execution vulnerability?
Successful exploitation could allow a remote, unauthenticated attacker to execute arbitrary code through the affected PHP runtime. The potential impact depends on the permissions and network access of the PHP process. 
Which PHP versions are affected by the PHP2Shell vulnerability?
Organisations should check their installed PHP versions against the relevant vendor security advisory. The PHP project identifies 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as fixed releases. For older or vendor-maintained builds, confirm whether the relevant security fixes have been backported.
Is a PHP2Shell patch available?
Yes. Organisations should upgrade affected systems to a fixed, vendor-supported PHP release. After applying the PHP2Shell patch, verify the actual runtime version and restart affected workers or services where required. 
What should I do if I can't apply the PHP2Shell patch immediately?
Prioritise internet-facing and business-critical systems. If immediate patching is not possible, consider restricting access or temporarily taking affected services offline based on the risk, and check for signs of compromise.
How does a cyber resilience assessment help against threats like PHP2Shell?
A cyber resilience assessment can identify gaps in an organisation's ability to manage critical vulnerabilities, from identifying exposed assets and prioritising remediation to detecting, containing and recovering from security incidents.

Why PHP2Shell matters for cyber resilience?

PHP2Shell highlights a broader challenge for organisations: being able to respond quickly and effectively when critical cybersecurity vulnerabilities are disclosed. 

Strong cyber resilience depends on knowing where affected technologies are running, prioritising remediation, deploying emergency fixes safely and verifying that updates are effective across the entire environment. A structured information security management approach can support these processes and help organisations prepare to detect, contain and recover from potential compromise. 

A cyber resilience assessment can help organisations identify gaps in these capabilities and strengthen their overall readiness for future security incidents.
PHP2Shell is a timely reminder that organizations must continuously monitor, patch, and validate not only their applications but also the runtimes and platforms they depend on to stay resilient against emerging threats.

Vaibhav Ppulekar

Global BL Manager Cyber Security

What should organisations do next?

Organisations should identify affected PHP runtimes, apply the appropriate PHP2Shell patch and verify that remediation is effective across their environment. They should also assess whether further action is needed to strengthen their preparedness for future critical vulnerabilities. 

Get started with TÜV SÜD

Strengthen your organisation's cyber resilience and assess your readiness to respond to critical vulnerabilities with TÜV SÜD's cybersecurity experts.
    Contact us