PHP2Shell: Critical RCE Vulnerabilities Affect a Large Majority of Web Servers
6 Minute Read
by Karl Sigler
Update Oct 22 2026: New sections were added for “Observed Threat Activity and Indicators” and “Mitigations and Recommendations.”
Overview
On October 21st, two critical memory manipulation vulnerabilities were disclosed in a joint announcement by Wiz Research, Calif, OpenAI, and the PHP team. The two vulnerabilities, combined, are being called PHP2Shell. The vulnerabilities are in PHP Core, which means any web application running on top of PHP is likely vulnerable. Estimates suggest that this is over two-thirds (2/3) of the web.
Affected Versions
|
PHP branch |
Vulnerable releases |
First fixed release |
|
8.2 |
< 8.2.35 |
8.2.35 |
|
8.3 |
< 8.3.36 |
8.3.36 |
|
8.4 |
< 8.4.27 |
8.4.27 |
|
8.5 |
< 8.5.12 |
8.5.12 |
Patches are available here.
Stay ahead of threats and protect your business with LevelBlue.
Explore ServicesThe Vulnerabilities
The vulnerabilities rest in how PHP handles fatal errors. Stale state data associated with the fatal error remains, allowing a future session to reuse it, leading to memory manipulation, unauthenticated remote code execution, and information leakage.
These vulnerabilities have been hiding in the PHP code for over a decade. They were discovered now because of the use of AI during vulnerability research. The team used a combination of Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol models, noting that Gemini 4 Argon was specifically useful in uncovering the vulnerability and exploit development.
The CVEs assigned to these vulnerabilities are in the table below:
|
CVE |
CVSS |
Vulnerability |
What an attacker can achieve |
What we demonstrated |
|
CVE-2026-109618 |
9.2 |
Out-of-memory (OOM) corruption |
Execute code without authentication as the PHP web worker |
Pre-authentication remote code execution (RCE) on WordPress, Drupal, and Joomla |
|
CVE-2026-109619 |
9.2 |
Stale global state across requests |
Trigger a use-after-free to disclose worker memory or execute code |
Pre-authentication RCE on WordPress and Drupal; application-agnostic remote memory disclosure |
Observed Threat Activity and Indicators
Published security research and recent security telemetry indicate opportunistic scanning and attempted exploitation associated with PHP2Shell. Activity includes HTTP requests targeting PHP session upload-progress functionality, suspicious multipart form submissions, and automated scanning using PHP2Shell-related User-Agent strings.
Potential HTTP request indicators include:
- POST requests containing multipart/form-data and the PHP_SESSION_UPLOAD_PROGRESS parameter.
- Unusually large form parameters or malformed session upload-progress values.
- Abnormal PHP memory-limit errors or unexpected application responses following suspicious requests.
Scanner User-Agent strings observed during broader threat hunting include:
- php2shell-109618
- php2shell-scan/109618
- php2shell-scan/1.0
- php2shell-probe/1.0
These User-Agent strings are attacker-controlled and may indicate automated scanning or probing rather than successful exploitation.
Selected IP addresses observed during broader multi-customer investigations include:
NOTE: These indicators were identified during investigations of suspected PHP2Shell activity. While some are associated with potential exploitation attempts, others reflect automated scanning or reconnaissance and are not necessarily malicious. Inclusion does not confirm successful exploitation or compromise. Indicators should be validated against additional context before blocking or taking remediation actions.
|
Type |
Indicator |
Context / Assessment |
|
IP |
64.95.12.7 |
Suspected exploitation: HTTP POST containing PHP2Shell-related multipart indicators. Blocked by Cloudflare WAF. |
|
IP |
34.22.235.83 |
Suspected exploitation: HTTP POST involving PHP_SESSION_UPLOAD_PROGRESS. Blocked by Cloudflare WAF. |
|
IP |
85.11.167.243 |
Suspected exploitation: POST requests associated with PHP2Shell-themed activity; IPS detections referencing CVE-2026-109618/109619. No confirmed successful exploitation. |
|
IP |
153.75.85.29 |
Scanning: PHP2Shell-themed automated scanning and PHP exposure checks. Cloudflare challenges observed. |
|
IP |
172.105.154.49 |
Scanning: PHP2Shell version-check User-Agent and HTTP GET requests. No evidence of exploitation. |
|
IP |
1.52.101.122 |
Scanning: Requests using the shellflow-php2shell/1.0 User-Agent. |
|
IP |
136.144.33.112 |
Scanning: Associated with shellflow-php2shell/1.0. No confirmed exploitation. |
|
IP |
2a02:c207:2330:6679::1 |
Scanning: PHP2Shell-themed requests across multiple domains. |
|
IP |
172.59.146.126 |
Scanning: PHP2Shell exposure-check User-Agent; Cloudflare managed challenge. |
|
IP |
50.20.218.219 |
Scanning: PHP2Shell exposure-check User-Agent; Cloudflare managed challenge. |
|
IP |
73.74.49.22 |
Scanning: PHP2Shell exposure-check User-Agent; Cloudflare managed challenge. |
|
IP |
104.251.180.130 |
Scanning: PHP2Shell scanner User-Agent; authorization claim unverified. |
|
IP |
164.68.102.163 |
Scanning: PHP2Shell validation User-Agent; no confirmed exploitation. |
|
IP |
77.222.114.171 |
Scanning: PHP2Shell scanner User-Agent. |
|
IP |
115.120.198.165 |
Scanning: PHP2Shell probe User-Agent; Cloudflare challenges observed. |
|
IP |
90.76.239.150 |
Scanning: PHP2Shell-themed automated scanning using a distinctive User-Agent. |
|
IP |
185.182.185.160 |
Scanning: PHP2Shell scanner User-Agent; no confirmed exploitation. |
|
HTTP |
POST multipart/form-data containing PHP_SESSION_UPLOAD_PROGRESS |
Higher-confidence exploit indicator: PHP upload-progress functionality targeted in suspected PHP2Shell exploitation attempts. |
|
HTTP |
Unusually large or malformed PHP_SESSION_UPLOAD_PROGRESS values |
Potential PHP2Shell exploit preparation or triggering behavior when correlated with suspicious multipart requests. |
|
User-Agent |
php2shell-109618 |
Observed in suspicious POST requests and IPS detections referencing PHP2Shell. |
|
User-Agent |
php2shell-version-check/1.0 (safe, no exploitation) |
Automated PHP2Shell version checks; benign claim unverified. |
|
User-Agent |
shellflow-php2shell/1.0 |
Automated PHP2Shell-themed probing. |
|
User-Agent |
Mozilla/5.0 (compatible; php2shell-exposure-scan/1.0) |
PHP2Shell exposure scanning; not necessarily malicious. |
|
User-Agent |
php2shell-check/1.0 |
Automated PHP2Shell checks. |
|
User-Agent |
php2shell-scan/2.0 (authorized-security-assessment) |
PHP2Shell scanner claiming authorization; unverified. |
|
User-Agent |
php2shell-scanner/1.0 |
Automated PHP2Shell scanning. |
|
User-Agent |
php2shell-validate/1.0 (+detection-only; no exploitation) |
PHP2Shell validation activity; claim unverified. |
|
User-Agent |
php2shell-masscheck/1.0 (authorized-audit) |
PHP2Shell mass-scanning; authorization unverified. |
|
User-Agent |
php2shell-scan/1.0 |
Automated PHP2Shell scanning. |
|
User-Agent |
Mozilla/5.0 (compatible; php2shell-probe/1.0; authorized-scan) |
PHP2Shell probing; authorization unverified. |
|
User-Agent |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36 DNN-CERT-BPO/Kheish-LLM-autoscan/php2shellRun |
Potential host-based indicators include:
- Unexpected PHP-FPM or Apache worker crashes, including segmentation faults.
- PHP processes spawning shells, interpreters, or other unusual child processes.
- Suspicious outbound network connections originating from web-server processes.
- Unexpected changes to application files or the appearance of unauthorized web-accessible scripts.
The presence of individual indicators does not establish successful exploitation. Additional investigation and event correlation are necessary to determine whether an affected system has been compromised.
Mitigation and Recommendations
The PHP security team released emergency patches on October 21, 2026. Organizations should prioritize updating affected PHP runtimes immediately, as temporary configuration changes and web application firewall (WAF) protections do not provide complete mitigation.
1. Inventory PHP Deployments
Identify all servers, containers, hosting accounts, and applications running PHP, including internet-facing web servers, internal applications, and third-party products containing bundled PHP runtimes.
Record the installed PHP version, operating system, deployment method, and responsible administrator. Particular attention should be given to PHP-FPM, Apache mod_php, php-cgi, LiteSpeed, FrankenPHP, and containerized deployments.
2. Apply Official Security Updates
Upgrade affected PHP installations to 8.2.35, 8.3.36, 8.4.27, or 8.5.12, as appropriate, or apply a verified vendor-provided security backport.
Obtain updates through trusted PHP distributions, operating-system repositories, container image publishers, or hosting providers. Restart or redeploy affected PHP services and verify that the updated runtime is actively running.
Organizations should prioritize internet-facing systems and other critical applications while ensuring that all affected PHP deployments are remediated.
3. Implement Temporary Precautionary Measures
Where immediate patching is not possible, organizations should consider temporary safeguards to reduce potential exposure, including restricting unnecessary external access, applying available WAF protections, and reviewing PHP session upload-progress functionality.
PHP's session.upload_progress.enabled setting controls upload-progress tracking and is enabled by default. Where the feature is not required, administrators may consider temporarily disabling it:
session.upload_progress.enabled = Off
Configure this setting through the appropriate PHP configuration mechanism, such as php.ini, .user.ini, or .htaccess where supported, and reload or restart relevant services as necessary.
Note: Disabling session upload-progress functionality may reduce exposure to certain attack paths but does not provide complete protection against both vulnerabilities. The PHP security team identifies updating the affected runtime as the only complete remediation. Administrators should verify application compatibility before implementing configuration changes. Additional possible mitigation measures are referenced on the php2shell.com website.
4. Address Unsupported PHP Versions
Legacy PHP deployments require particular attention because unsupported versions may no longer receive upstream security updates.
Organizations should contact their hosting providers or distribution maintainers to determine whether verified security backports are available. Where supported remediation is unavailable, migration to a currently maintained PHP release should be prioritized following compatibility testing.
5. Prepare Incident Response Procedures
Ensure recent backups are available and retain relevant web-server, WAF, PHP error, application, endpoint, and network logs for potential investigation.
Organizations should review suspicious activity involving PHP processes, unexpected application crashes, unusual child-process execution, and unauthorized changes to web-accessible files.
On Linux systems, Florian Roth's process-watcher project may serve as an optional investigative resource after validating its suitability for the environment.
OpenAI PHP2Shell Checker
OpenAI has published an open-source PHP version assessment utility designed to help organizations identify potentially vulnerable PHP installations.
Repository: https://github.com/openai/php2shell-checker
The utility supports checking a remotely accessible website or a locally installed PHP binary using Node.js.
Example commands:
- Remote website assessment: node phpcheck.js "https://example.com"
- Local PHP assessment: node phpcheck.js --local
The checker returns an assessment of OK, VULNERABLE, or UNKNOWN based on the PHP version information it can identify.
Remote assessments rely on exposed HTTP headers, including X-Powered-By and Server, and may be inconclusive when version information is hidden or unavailable. The tool does not actively exploit the vulnerabilities or independently verify successful remediation.
Vendor security backports may also affect patch status without changing the upstream PHP version string. Therefore, results should be validated against local package inventories and vendor security advisories.
Organizations should use the utility only against authorized assets and should not treat an OK result as definitive proof that a system is secure.
Conclusion
Adding AI to vulnerability research will undoubtedly uncover more consequential bugs over time, especially in open-source code. While this will make our services and software more secure than ever, expect more disclosures like these in the meantime.
Additional Resources
-
PHP Foundation: https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/
-
PHP security release: https://www.php.net/index.php
-
PHP2Shell: https://www.php2shell.com/
-
OpenAI checker: https://github.com/openai/php2shell-checker
-
Cloudflare: https://blog.cloudflare.com/php-vulnerabilities-waf-protection/
-
NCSC-NL: https://github.com/NCSC-NL/php2shell
As a trusted security partner, LevelBlue is on heightened alert for our clients and partners and is monitoring for any suspicious activity. Should new information arise that alters this assessment, we will provide an update directly.
About the Author
Karl Sigler is Security Research Manager, SpiderLabs Threat Intelligence at LevelBlue. Karl is a 20-year infosec veteran responsible for research and analysis of current vulnerabilities, malware and threat trends at LevelBlue. Follow Karl on LinkedIn.
About LevelBlue
LevelBlue secures what's next with intelligence-led security delivering visibility and speed to stop threats faster. As the world’s largest and most analyst-recognized pure-play managed security services provider, our AI-powered managed services and cyber expertise across managed, advisory, and incident response services help clients operate with confidence. Learn more about us.