
Executive Summary
The PHP development team has announced emergency security updates to address two critical vulnerabilities, collectively known as PHP2Shell. These vulnerabilities, identified as CVE-2026-109618 and CVE-2026-109619, pose a significant risk as they could enable attackers to execute code remotely on web servers without requiring authentication. The PHP team has released patches in versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35, urging all users to update their installations without delay.
What Happened
The vulnerabilities were discovered in PHP's handling of memory management, specifically concerning out-of-memory (OOM) conditions and stale global states. The PHP security team rated these vulnerabilities with a CVSS score of 9.2, indicating their critical nature. A working exploit has already been demonstrated, allowing unauthenticated attackers to execute malicious code before any application code is processed.
Technical Root Cause
- CVE-2026-109618: This vulnerability arises from improper handling of out-of-memory conditions, which can lead to PHP processing partially initialized internal request data. This flaw can allow attackers to manipulate request cleanup processes, treating invalid data as valid.
- CVE-2026-109619: This flaw involves stale global state management, where internal state data can persist after its backing memory has been freed. Subsequent requests handled by the same worker may inadvertently use this stale data, leading to potential code execution vulnerabilities.
Exposure and Affected Environments
Every PHP installation that serves web requests is vulnerable, including setups using:
- PHP-FPM
- Apache with mod_php
- php-cgi
- FrankenPHP
- LiteSpeed
Among these, configurations utilizing mod_php are considered particularly at risk. The UK’s National Cyber Security Centre (NCSC) has strongly advised organizations to patch their PHP systems immediately and to consider taking offline any systems that cannot be updated promptly.
Patch and Mitigation Playbook
To mitigate the risks associated with these vulnerabilities, organizations should take the following actions:
- Update PHP: Upgrade to one of the fixed versions: 8.5.12, 8.4.27, 8.3.36, or 8.2.35. Downloads are available from the official PHP website.
- Check with Vendors: For those using Linux distributions or long-term support (LTS) vendors, verify with your vendor for updated packages that include the patches.
- Consider Alternatives: Users relying on volunteer-maintained repositories, such as rpms.remirepo.net, should transition to distribution packages or compile PHP from source to ensure they can apply patches immediately.
- Implement WAF Rules: Organizations using Cloudflare should enable the initial set of Web Application Firewall (WAF) rules that have been deployed to mitigate known exploit vectors for these vulnerabilities.
Security Program Lessons Learned
This incident highlights several critical lessons for cybersecurity programs:
- Proactive Monitoring: Continuous monitoring for vulnerabilities and timely patch management are essential to prevent exploitation.
- Awareness Training: Educating development and IT teams about the importance of secure coding practices and the implications of vulnerabilities can reduce risks significantly.
- Incident Response Planning: Organizations should have a robust incident response plan in place to quickly address vulnerabilities and mitigate potential exploitation.
“The PHP situation will lead to a mass of incidents – it’s one of the biggest vulns in years.” – Kevin Beaumont, Security Researcher
Sources
- Help Net Security: PHP2Shell: Critical PHP vulnerabilities patched, update now!
- Help Net Security: Ransomware gangs have been exploiting Palo Alto GlobalProtect VPN flaw since June
- The Hacker News: PHP2Shell: Two Unpatched Critical PHP RCE Flaws (CVSS 9.2) Trigger Emergency Security Alert
Executive Context
The PHP development team has released emergency updates to address two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that could allow remote code execution on web servers. All PHP users are urged to update their installations immediately.
PHP security team rated these vulnerabilities with a CVSS score of 9.2, indicating their critical nature. A working exploit has already been demonstrated, allowing unauthenticated attackers to execute malicious code before any application code is processed. Technical Root Cause CVE-2026-109618: This vulnerability arises from improper handling of out-of-memory conditions, which can lead to PHP processing partially initialized internal request data. This flaw can allow attackers to manipulate request cleanup processes, treating invalid data as valid. CVE-2026-109619: This flaw involves stale global state management, where internal state data can persist after
This report consolidates available public details and highlights where evidence is still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected.
Adversary Goals and Capabilities
its backing memory has been freed. Subsequent requests handled by the same worker may inadvertently use this stale data, leading to potential code execution vulnerabilities. Exposure and Affected Environments Every PHP installation that serves web requests is vulnerable, including setups using: PHP-FPM Apache with mod_php php-cgi FrankenPHP LiteSpeed Among these, configurations utilizing mod_php are considered particularly at risk. The UK’s National Cyber Security Centre (NCSC) has strongly advised organizations to patch their PHP systems immediately and to consider taking offline any systems that cannot be updated promptly. Patch and Mitigation
Based on observed patterns in recent campaigns, the likely attacker objective is to establish durable access, exploit trust relationships, and later pivot toward higher-value systems. Where specific attribution or tooling data is absent, these details are not publicly disclosed and should be treated as unknown.
Observable Indicators and Telemetry
Rules: Organizations using Cloudflare should enable the initial set of Web Application Firewall (WAF) rules that have been deployed to mitigate known exploit vectors for these vulnerabilities. Security Program Lessons Learned This incident highlights several critical lessons for cybersecurity programs: Proactive Monitoring: Continuous monitoring for vulnerabilities and timely patch management are essential to prevent exploitation. Awareness Training: Educating development and IT teams about the importance of secure coding practices and the implications of vulnerabilities can reduce risks significantly. Incident Response Planning: Organizations should have a robust incident response plan in
place to quickly address vulnerabilities and mitigate potential exploitation. “The PHP situation will lead to a mass of incidents – it’s one of the biggest vulns in years.” – Kevin Beaumont, Security Researcher Sources Help Net Security: PHP2Shell: Critical PHP vulnerabilities patched, update now! Help Net Security: Ransomware gangs have been exploiting Palo Alto GlobalProtect VPN flaw since June The Hacker News: PHP2Shell: Two Unpatched Critical PHP RCE Flaws (CVSS 9.2) Trigger Emergency Security Alert The PHP development team has released emergency security updates to fix PHP2Shell, two critical vulnerabilities
(CVE-2026-109618 and CVE-2026-109619) that could let attackers execute code remotely on web servers without logging in. The fixes are in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and the team is strongly urging all PHP users to update immediately. Who is affected? Every PHP installation that serves web requests is affected, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. Setups … More → The post PHP2Shell: Critical PHP vulnerabilities patched, update now! appeared first on Help Net Security . trigger the attack before any application code runs. “The PHP situation
Security engineering teams should validate exploitability across environments, map exposure by asset criticality, and confirm whether available telemetry can detect pre-compromise reconnaissance, exploitation attempts, and post-exploitation behavior.
Incident Response Priorities
will lead to a mass of incidents – it’s one of the biggest vulns in years,” noted security researcher Kevin Beaumont. CVE-2026-109618 – RCE via OOM corruption : out-of-memory handling can interrupt PHP while internal request data is only partially initialized. Request cleanup may then treat the invalid data as valid. CVE-2026-109619 – RCE via stale global state : request-owned internal state can survive after its backing memory has been freed. A later request handled by the same worker This report consolidates available public details and highlights where evidence is
Organizations with internet-facing systems, third-party integrations, or delayed patch cycles generally carry elevated risk. Internal segmentation gaps can increase blast radius if an attacker obtains initial foothold credentials.
Detection and Monitoring Priorities
- Correlate authentication anomalies with unusual process execution and outbound traffic spikes.
- Alert on privilege escalation events, lateral movement indicators, and unauthorized persistence changes.
- Prioritize monitoring of externally exposed services and high-value identity providers.
- Track integrity changes in scripts, scheduled tasks, startup items, and critical configuration files.
- Hunt for command-and-control beaconing patterns and suspicious use of remote administration tools.
Detection coverage should be validated through tabletop simulation or controlled testing to ensure response teams receive actionable, high-confidence alerts quickly.
Mitigation Checklist
- Patch affected services and validate version levels across all environments.
- Restrict exposed management and service ports to trusted networks only.
- Enable detailed logging and alerting for suspicious process or network activity.
- Harden endpoint controls and isolate high-risk systems until remediation completes.
- Conduct post-remediation validation and document residual risk.
Mitigations should be sequenced by risk: immediately reduce exposed attack surface, then remove persistence opportunities, and finally harden architecture to prevent recurrence.
Incident Response and Recovery Planning
- Establish a clear incident commander and communication cadence across security, IT, and leadership.
- Capture and preserve relevant logs and forensic artifacts before major containment changes.
- Contain compromised accounts and hosts, then execute structured eradication with validation checkpoints.
- Document lessons learned and implement control improvements with owner accountability and timelines.
Recovery should include business continuity planning, legal or regulatory assessment where required, and transparent stakeholder updates based on verified facts.
Strategic Impact for Leadership
still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected. may use that stale state before normal initialization resets it. The UK’s National Cyber Security Centre (NCSC) is urging organizations to patch PHP systems immediately, and to consider taking offline any system that can’t be fixed right away. “So many embedded installations out there that will never be patched. Too many forgotten, unmaintained apps. There will be a long tail for this one,” commented computer forensics expert Hal Pomeranz. Update to PHP 8.5.12, 8.4.27, 8.3.36 or
8.2.35. Downloads are available here . Linux distributions and long-term support (LTS) vendors got the patches ahead of the public release, so admins should check with their vendor for updated packages. The PHP project no longer supports PHP 8.1 and earlier versions. Some distributions and LTS vendors offer backported fixes, so users on these versions should contact their vendor or upgrade to a supported release. Anyone who relies on rpms.remirepo.net , a volunteer-maintained repository, is advised to switch to distribution packages or build PHP from source so they can patch
Security leaders should align technical remediation with stakeholder communication, incident readiness, and continuous monitoring to reduce repeat exposure.