PHP2Shell RCE Vulnerabilities (CVE-2026-109618, CVE-2026-109619)

Critical 'PHP2Shell' Flaws Put 70% of Websites at Risk of RCE

CRITICAL
October 22, 2026
October 25, 2026
5m read
VulnerabilityCyberattackPatch Management

Related Entities(initial)

Organizations

CISACloudflareMicrosoftWiz

Products & Tech

PHP

Other

PHP2Shell

CVE Identifiers

CVE-2026-109618
CRITICAL
CVE-2026-109619
CRITICAL

Full Report(when first published)

Executive Summary

A set of critical remote code execution (RCE) vulnerabilities, collectively named PHP2Shell, has been discovered in the core engine of the PHP scripting language. Tracked as CVE-2026-109618 and CVE-2026-109619, these flaws affect nearly all versions of PHP released over the past decade. The vulnerabilities, which stem from memory corruption and disclosure bugs, can be exploited by unauthenticated attackers to gain complete control of a web server. Given that PHP powers an estimated 70% of all websites, the discovery has triggered a global emergency response, with government agencies like CISA issuing directives for immediate patching and widespread exploitation attempts already being observed in the wild.

Vulnerability Details

The vulnerabilities were discovered by security researchers at Wiz Research, who found underlying architectural flaws that had remained hidden for over a decade. The exploit chain combines a memory corruption bug with a memory disclosure bug, allowing an attacker to achieve unauthenticated RCE on a target server. This means an attacker does not need any credentials or prior access to take full control.

  • CVE-2026-109618: A memory corruption vulnerability in PHP's core engine.
  • CVE-2026-109619: A memory disclosure vulnerability that can be chained with the first flaw.

The attack vector is remote and requires no user interaction, making it highly wormable and extremely dangerous. Successful exploitation grants the attacker the same level of permission as the web server process, which is often sufficient to read/write web files, access databases, and pivot deeper into the network.

Affected Systems

The vulnerabilities affect a vast range of PHP versions, spanning from PHP 5.4 through PHP 8.5. Essentially, any unpatched PHP installation from the last ten years that is used to serve web requests is considered vulnerable. The official PHP development team has released the following patched versions:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

Organizations using any older versions are strongly urged to upgrade immediately.

Exploitation Status

Mass exploitation of the PHP2Shell vulnerabilities began within hours of public disclosure. Security firms like Cloudflare reported observing millions of exploit attempts across their networks. The low complexity of the exploit, combined with the massive attack surface, has led to widespread automated scanning and exploitation campaigns by various threat actors. CISA has added the vulnerabilities to its Known Exploited Vulnerabilities (KEV) catalog, mandating federal agencies to patch by a specified deadline.

Impact Assessment

The impact of PHP2Shell is catastrophic due to PHP's ubiquity in web development. An estimated 70% of all websites, from small blogs to large enterprise applications and government services, rely on PHP. A successful exploit can lead to:

  • Complete Server Compromise: Attackers can execute arbitrary code, effectively taking over the server.
  • Data Theft: Sensitive information, including customer data, intellectual property, and database contents, can be exfiltrated.
  • Website Defacement and Malware Distribution: Compromised sites can be used to host malicious content or serve as part of a larger botnet.
  • Denial of Service: The vulnerability could be used to crash web servers, causing significant business disruption.

Governments and companies worldwide, including 32 UK government services, have taken systems offline as a precaution while patches are applied, indicating the severe operational impact.

Cyber Observables — Hunting Hints

The following patterns may help identify vulnerable or compromised systems:

Type
command_line_pattern
Value
php -v
Description
Command to check the installed PHP version on a server.
Context
Host-based forensics
Type
log_source
Value
access.log, error.log
Description
Web server logs (Apache, Nginx) should be monitored for unusual requests or errors.
Context
Log Analysis / SIEM
Type
network_traffic_pattern
Value
Unusually large responses to simple GET/POST requests
Description
Could indicate memory disclosure attempts.
Context
Network Security Monitoring
Type
file_name
Value
*.php
Description
Monitor for newly created or recently modified PHP files in web directories, which could be web shells.
Context
File Integrity Monitoring

Detection Methods

Security teams should prioritize detecting both vulnerable and compromised systems.

  1. Vulnerability Scanning: Use authenticated and unauthenticated vulnerability scanners updated with signatures for CVE-2026-109618 and CVE-2026-109619 to identify all vulnerable PHP instances across the environment.
  2. Asset Inventory: Run commands like dpkg -l | grep php or rpm -qa | grep php on Linux systems to find all installed PHP packages and their versions.
  3. Log Analysis: Scrutinize web server, application, and system logs for signs of exploitation. Look for anomalous requests, unexpected error messages, or evidence of command execution by the web server process (e.g., www-data, apache). This can be aided by D3FEND's Network Traffic Analysis.
  4. Endpoint Detection and Response (EDR): Monitor for suspicious processes spawned by your web server process (e.g., apache2, nginx, php-fpm). Any child process like sh, bash, curl, or wget is highly indicative of compromise.

Remediation Steps

Immediate action is required to mitigate the extreme risk posed by PHP2Shell.

  1. Patch Immediately: The primary and most effective remediation is to upgrade all PHP installations to a patched version (8.5.12, 8.4.27, 8.3.36, or 8.2.35). This is a critical action that should be prioritized for all internet-facing systems. This aligns with D3FEND's Software Update technique.
  2. Take Systems Offline: If patching is not immediately possible, CISA recommends taking vulnerable systems offline to prevent compromise.
  3. Apply Compensating Controls: Implement a Web Application Firewall (WAF) with virtual patching rules designed to block exploit attempts for these CVEs. While not a substitute for patching, this can provide a temporary layer of defense.
  4. Assume Breach: For any systems that were exposed to the internet and unpatched after the disclosure, assume they have been compromised. Initiate incident response procedures, hunt for signs of persistence (e.g., web shells, new user accounts), and consider rebuilding the systems from a known-good state.

Timeline of Events

1
October 21, 2026
Wiz Research discloses critical PHP vulnerabilities dubbed 'PHP2Shell'.
2
October 21, 2026
CISA issues an emergency directive for federal agencies to patch the PHP flaws.
3
October 22, 2026
Reports emerge of millions of exploit attempts and widespread emergency patching efforts.
4
October 22, 2026
This article was published

Article Updates

October 24, 2026

Severity increased

Amazon Threat Intelligence identified pre-disclosure exploitation of PHP2Shell flaws as early as Oct 17, increasing the urgency for patching. Older, unsupported PHP versions remain at permanent risk.

New intelligence from Amazon Threat Intelligence reveals that exploitation of the PHP2Shell vulnerabilities (CVE-2026-109618, CVE-2026-109619) was observed as early as October 17, 2026, prior to public disclosure. This indicates a more advanced and prolonged threat landscape than initially understood. The flaws critically impact widely used platforms like WordPress, Drupal, and Magento. Furthermore, PHP versions 8.1 and older, which are unsupported, will not receive official patches, leaving millions of legacy websites permanently vulnerable unless they undergo costly and complex upgrades. This significantly elevates the long-term risk and operational burden for many organizations.

October 25, 2026

Severity increased

PHP2Shell flaws confirmed as zero-day, actively exploited before patches. NSA advisory issued, CISA adds to KEV with specific timeline and global impact.

New information confirms the PHP2Shell vulnerabilities were actively exploited as zero-days, with Amazon Threat Intelligence observing attempts on October 17, 2026, four days before public announcement. The NSA has also issued an urgent advisory. CISA officially added both CVEs to its KEV catalog on October 26, 2026, mandating a patching deadline for federal agencies. The impact is more clearly defined, with major Japanese corporations (ANA, JR West, MUFG Bank) and government services in multiple European countries taking systems offline. Additional hunting hints and a new remediation step, application hardening by disabling unnecessary PHP functions, have been provided.

Timeline of Events

1
October 21, 2026

Wiz Research discloses critical PHP vulnerabilities dubbed 'PHP2Shell'.

2
October 21, 2026

CISA issues an emergency directive for federal agencies to patch the PHP flaws.

3
October 22, 2026

Reports emerge of millions of exploit attempts and widespread emergency patching efforts.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

CISAMemory CorruptionPHPRCEWeb ServerWiz

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

⚡ Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.